hi,
i bought a new macbookpro (running 10.6.6) and used a firewire cable to move my existing stuff from my old macbookpro (running 10.4 and Xcode 3)
much to my delight the build of my project worked fine, so now i have Xcode Version 3.1.3 running under 10.6.6
however, if i compile a simple file like
#include <stdio.h>
int main(void){ printf("hello world"); return 0; }
using the terminal, i get the following:
perry-macbookpro:~ za$ /Developer/usr/bin/gcc-4.0 test.cpp test.cpp:1:19: error: stdio.h: No such file or directory test.cpp: In function ‘int main()’: test.cpp:4: error: ‘printf’ was not declared in this scope perry-macbookpro:~ za$
looks to me the problem is caused by the fact that i did not do a proper install of course i will do a normal upgrade to Xcode 4 soon, but is there a way to set the correct default path for stuff like <stdio.h> and <OSAtomic.h>?
any help would be much appreciated! --- perry
|