discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obective-C undefined reference to ___objc_class_name_NSObject on Win


From: Nicola Pero
Subject: Re: Obective-C undefined reference to ___objc_class_name_NSObject on Windows
Date: Mon, 19 Oct 2009 23:07:16 +0100


When I use:
gcc -o filename filename.h -I /c/gnustep/gnustep/system/library/ headers -L /c/gnustep/gnustep/system/library/libraries
to compile the file I receive the following errors:

undefined reference to   ___objc_class_name_NSObject
undefined reference to  ___objc_exec_class

1- Could you kindly tell me how I can tackle this problem
2- How can I set any environmental variables so that I can avoid typing -I /c/gnustep/gnustep/system/library/headers -L /c/gnustep/ gnustep/system/library/libraries
every time.

The easiest way to start is to use gnustep-make to compile and link your tool for you. Check

http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/index.html

for a tutorial on writing GNUmakefiles and using gnustep-make.

Thanks





reply via email to

[Prev in Thread] Current Thread [Next in Thread]