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 Date: Mon, 6 Jan 2003 10:58:40 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Re: help for compiling problem! Message-ID: <20030106155840.GC25858@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20030106065320 DOT E6109407C AT sitemail DOT everyone DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030106065320.E6109407C@sitemail.everyone.net> User-Agent: Mutt/1.5.1i 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/