delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/06/10:59:01

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
Date: Mon, 6 Jan 2003 10:58:40 -0500
From: Christopher Faylor <cgf-cygwin AT cygwin DOT com>
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
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/

- Raw text -


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