Mail Archives: cygwin/2003/01/06/13:14:42
r u sure? if cygwin does not suport setlinbuf, why i can find the definition in the header file as:
\usr\include\stdio.h(239):int _EXFUN(setlinebuf, (FILE *));
anyway, thanks
>On Sun, Jan 05, 2003 at 10:53:20PM -0800, Elfyn McBratney wrote:
>>>next job is to produce the symbolic soft qepcad. but the undefined
>>>reference error comes up. any suggestions.
>>>
>>>error: main.c: undefined reference to '_setlinebuf'
>>
>>Does main.c include stdio.h? stdio.h (in /usr/include) is where
>>setlinebuf() is defined.
>
>cygwin doesn't provide setlinebuf.
>
>Just as a general wise hint to the mailing list, when you see an error
>like:
>
> main.c: undefined reference to '_setlinebuf'
>
>It generally is an excellent indication that "setlinebuf" is not
>available.
>
>As amazing as it sounds, the linker/compiler messages are actually
>telling you something useful and understandable! Who would have guessed?
>In general what this means is that you have to actually "inspect" the
>code and "port it" as you would if you were trying to get it to "run" on
>some other system besides, say, "linux". You could start by inspecting
>a "man page" for setlinebuf, trying to figure out what it does, and then
>adapting the "code" to accommodate it.
>
>cgf
>--
>Please use the resources at cygwin.com rather than sending personal email.
>Special for spam email harvesters: send email to aaaspam AT sources DOT redhat DOT com
>and be permanently blocked from mailing lists at sources.redhat.com
>
>--
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ: http://cygwin.com/faq/
>
>
>
>.
= = = = = = = = = = = = = = = = = = = =
ÖÂ
Àñ£¡
Irving Lee
irving-lee AT sohu DOT com
2003-01-07
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -