Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cannot find interface declaration for ‘NXConstantString’

33 views
Skip to first unread message

Nidhi Sharma

unread,
Sep 19, 2012, 2:25:50 AM9/19/12
to help-g...@gnu.org
I am working on Objective C, I am trying to run a simple program on terminal of ubuntu by giving the following command:
gcc source.m -o source
but compiler has given error like:
source.m:1:34: error: Foundation/Foundation.h: No such file or directory
source.m: In function ‘main’:
source.m:4: error: cannot find interface declaration for ‘NXConstantString’
please help me to run my program.

Germán A. Arias

unread,
Sep 19, 2012, 2:37:03 AM9/19/12
to Nidhi Sharma, help-g...@gnu.org
With GNUstep is highly recommended don't call directly GCC. Instead, use
the GNUmakefiles and the tool "make" to build your projects. See:

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




Germán A. Arias

unread,
Sep 19, 2012, 1:45:04 PM9/19/12
to Nidhi Sharma, help-g...@gnu.org
Try run first the gnustep script. Usually
at /usr/GNUstep/System/Library/Makefiles/:

. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh

Notice the space after the dot. The path depend on how you install
gnustep.

El mié, 19-09-2012 a las 15:44 +0800, Nidhi Sharma escribió:
> I have made a GNUmakefile in the same folder where my program is. on
> giving command:
> make to compiler it is throwing an error:
> no such file or directory.
> so please tell me where i have to save this GNUmakefile.
>
>
>
>
>



0 new messages