[Top][All Lists]

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

objc/Object.h No such file or directory

From: Robert Francis
Subject: objc/Object.h No such file or directory
Date: Wed, 22 Oct 2008 16:04:37 -0600

I've just recently installed the GNUstep System and the GNUstep Core.  When I 
bring up the shell, it looks like everything is set up properly, but it won't 
compile a test program (test.m):

#import <objc/Object.h>

int main()
     id a = [object new];
     return 0;

The command line I used was:

gcc -o test test.m

The error I get is:

test.m:1;24: objc/Object.h:  No such file or directory
test.m:  In function 'main':...

I looked at the path by doing echo $PATH and it shows the header directory in 
the wrong place (/GNUstep/System/Library/Headers).  It is inside a GNUstep 
directory (/GNUstep/GNUstep/System/Library/Headers).  I copied the directory 
structure down a level and got the same result.  I even put in the full path 
for Object.h and got other errors, like it couldn't find the actual library.  
Has anyone tested this and can you tell from my description what is wrong?

reply via email to

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