delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/06/13:14:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Irving Lee" <irving-lee AT sohu DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Re: Re: help for compiling problem!
Mime-Version: 1.0
Date: Tue, 7 Jan 2003 2:8:14 +0800
Message-Id: <20030106174401.46ED853710@smtp01.sohu.com>
Note-from-DJ: This may be spam
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h06IEfj09504

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019