Le 21 nov. 04, � 18:18, Adam Fedor a �crit :


On Nov 21, 2004, at 12:54 AM, Robert Jones wrote:

Hello, I'm having trouble compiling simple Objective-C programs using Gnustep. I'm using the most recent release of Gnustep on a Win2000 system. Below is an example of my troubles:

[EMAIL PROTECTED] ~/projects
$ gcc -L/c/GNUstep/System/Tools -lobjc fraction.m main.m -o fraction.exe
fraction.m:1:2: warning: #import is obsolete, use an #ifndef wrapper in the header file
main.m:1:2: warning: #import is obsolete, use an #ifndef wrapper in the header file
C:/DOCUME~1/jareth/LOCALS~1/Temp/ccglaaaa.o(.data+0x134):fraction.m: undefined reference to `__objc_class_name_NSObject'



Try putting the -lobjc at the end of the line.

I think he just didn't link to Foundation (where I will expect NSObject to be)


--
Nicolas Roard
"Any sufficiently advanced technology is indistinguishable from magic."
 -Arthur C. Clarke



_______________________________________________
Help-gnustep mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-gnustep

Reply via email to