Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
upgrade problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

upgrade problem



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




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.