Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <005401c31c44$c9c09060$2180a8c0@toshiba>
From: "Campbell" <cf@cannex.com.au>
To: <cygwin@cygwin.com>
References: <Pine.GSO.4.44.0305162222110.8930-100000@slinky.cs.nyu.edu><002301c31c38$7d9c56d0$2180a8c0@toshiba> <m3he7u2j8v.fsf@telia.com>
Subject: Re: Porting - link error
Date: Sat, 17 May 2003 17:20:10 +1000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Scanned-By: MIMEDefang 1.4 (www dot roaringpenguin dot com slash mimedefang)

Andrew Markebo wrote:

> Just a small thought..
> | I can't find anything in the makefile that would upset name mangling.
> | CC = gcc
> | CFLAGS = -g -O $(DFLAGS) -Wall
> | DFLAGS = -DSYSV -DHAS_ITIMER -DHASSELECT
>
> Hmm haven't seen -DSYSV used before, what happens if you try to run
> without it.. and -DHAS_ITIMER? (who made the makefile BTW?)
>

In this application, the various DFLAGS are used during compiling to select
between the library functions & header files of the various unixes. Don't
appear to have anything to do with linking.

Lots of compile errors if -DSYSV is omitted.

Andrew M's other idea:
> | LIBS = -lm -lc
>
> What happens when you run this empty?

Changed to LIBS=(nothing)
Suddenly it link works. Yippee.
Just gone back and re-read "man ld", and I still don't understand.

Anyway, well done!

Now to see if I can use it to turn lights on & off....

Thanks to all for your help. Much appreciated.

Campbell.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

