.C cplusplus files in XCode?

Member
Posts: 469
Joined: 2002.10
Post: #1
Anyone know how to setup XCode to recognize .C files as c++ files?
As it is right now, it will only switch from the .h->.C and not back. Major annoyance.

---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #2
single click on the file, press the info button, then there should be a drop down menu, and you can change how the compiler will interpret that specific file (I don't know how to change it globally, sorry).
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
Rename your source files to something sane?

It may be the case that Xcode or GCC will detect whether you have a case-sensitive disk, and treat them as C++ if you do, and C if you don't.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  C++ with SDL2 Framework: Loading .bmp files in same folder in XCode 5 on Mavericks exitcode 1 860 Feb 23, 2014 11:15 PM
Last Post: SethWillits
  Why won't Xcode even try compiling my .cpp files?? SparkyNZ 11 13,479 Apr 3, 2011 01:44 PM
Last Post: AnotherJake
  Newbie problem XCode Include files BBBert 1 4,285 Mar 17, 2008 03:46 PM
Last Post: OneSadCookie
  Recompiling header files in Xcode scgames 7 6,406 Jun 30, 2006 07:39 PM
Last Post: ravuya
  xCode "Copy Files Build Phase" hangt5 2 6,043 Oct 5, 2005 03:36 PM
Last Post: hangt5