ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/05/03/11:35:54

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: KTrumpetsRule AT cs DOT com
Message-ID: <409.b09312.318a2512@cs.com>
Date: Wed, 3 May 2006 11:24:02 EDT
Subject: Re: question about Objective C
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: CompuServe 2000 32-bit sub 103
X-Spam-Flag: NO
Reply-To: djgpp AT delorie DOT com

Thanks for your help.  It worked this time.

>>You use both capitalized 'Printer.h' and lowercase 'printer.h' and this 
>>will bite you someday

I had "cut and pasted" this from the tutorial on the web and to be honest, I 
missed this.  I went back in and changed it.

>>> main.exe: main.o printer.o
>>>     gcc -o main.exe printer.o
>>       gcc -o main.exe main.o printer.o -lobjc
>>> 
>>> printer.o : printer.m printer.h
>>>     gcc -c -pedantic -ansi -Wno-import -lobjc -fgnu-runtime printer.m
>>       gcc -c -Wno-import -fgnu-runtime printer.m

I understand the change you suggested for the main.exe.  That was my mistake, 
forgetting the -lobjc.  I *think* I also understand why you suggested I drop 
the -pedantic and the -ansi switches.  Could you shed some light on what the 
-fgnu-runtime switch does?

Thanks again.

Bill

- Raw text -


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