• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
upgrade problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

upgrade problem


  • Subject: upgrade problem
  • From: email@hidden
  • Date: Mon, 14 Mar 2011 18:05:33 +0100

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

  • Follow-Ups:
    • Re: upgrade problem
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: upgrade problem
      • From: Laurent Daudelin <email@hidden>
  • Prev by Date: Re: Xc4 UI
  • Next by Date: Re: NSString value in debugger?
  • Previous by thread: Re: SDK 10.6 with Target 10.5
  • Next by thread: Re: upgrade problem
  • Index(es):
    • Date
    • Thread