discuss-gnustep
[Top][All Lists]
Advanced

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

Re: file annotations


From: Richard Frith-Macdonald
Subject: Re: file annotations
Date: Tue, 1 Mar 2005 14:31:41 +0000


On 1 Mar 2005, at 14:35, Charles Philip Chan wrote:

You don't need to know which headers/libraries are needed ;-) gnustep-make does it all for you. If you just need to compile that main() function,
copy the following stuff
...

Thanks Nicola, I tried something similiar earlier on too. However, I
am getting the same error:

Test.m: In function `main':
Test.m:3: error: `pool' undeclared (first use in this function)
Test.m:3: error: (Each undeclared identifier is reported only once
Test.m:3: error: for each function it appears in.)
Test.m:4: error: `NSString' undeclared (first use in this function)
Test.m:4: error: `path' undeclared (first use in this function)
Test.m:4: error: cannot find interface declaration for
`NSConstantString'

You do need one header in your source code ...

#include <Foundation/Foundation.h>

gnustep-make will ensure that the header is found and the libraries are linked.





reply via email to

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