delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/17/03:21:12

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
Message-ID: <005401c31c44$c9c09060$2180a8c0@toshiba>
From: "Campbell" <cf AT cannex DOT com DOT au>
To: <cygwin AT cygwin DOT com>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0305162222110 DOT 8930-100000 AT slinky DOT cs DOT nyu DOT edu><002301c31c38$7d9c56d0$2180a8c0 AT toshiba> <m3he7u2j8v DOT fsf AT telia DOT com>
Subject: Re: Porting - link error
Date: Sat, 17 May 2003 17:20:10 +1000
MIME-Version: 1.0
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/

- Raw text -


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