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 Message-ID: <005401c31c44$c9c09060$2180a8c0@toshiba> From: "Campbell" To: References: <002301c31c38$7d9c56d0$2180a8c0 AT toshiba> 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/