Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "cygwin AT cygwin DOT com" Subject: Re: Re: Re: help for compiling problem! Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Date: Tue, 7 Jan 2003 2:8:14 +0800 Message-Id: <20030106174401.46ED853710@smtp01.sohu.com> Note-from-DJ: This may be spam Content-Transfer-Encoding: 8bit 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/