delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/05/03/21:32:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Cesar Rabak <csrabak AT yahoo DOT com DOT br>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: question about Objective C
Date: Wed, 03 May 2006 22:30:59 -0300
Organization: Aioe.org NNTP Server
Lines: 38
Message-ID: <e3bl68$vn4$1@emma.aioe.org>
References: <409 DOT b09312 DOT 318a2512 AT cs DOT com>
NNTP-Posting-Host: RlVd++5HrKvzofRtoX/5wQ.user.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse AT aioe DOT org
In-Reply-To:
X-Accept-Language: pt-br, pt
User-Agent: Mozilla Thunderbird 1.0.6-6mdk (X11/20050322)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

KTrumpetsRule AT cs DOT com escreveu:
> 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?
> 
For all the details look:

C:\>info gcc invoking objective-c

Parenthentically, you'll see that probably in day-to-day compiling you 
can omit this switch as it is default (at least in the versions I used) 
for DJGPP.

--
Cesar Rabak

- Raw text -


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