.C cplusplus files in XCode?

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.

15.4" MacBook Pro revA
Quote this message in a reply
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
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 4,390 Feb 23, 2014 11:15 PM
Last Post: SethWillits
  Why won't Xcode even try compiling my .cpp files?? SparkyNZ 11 20,436 Apr 3, 2011 01:44 PM
Last Post: AnotherJake
  Newbie problem XCode Include files BBBert 1 5,305 Mar 17, 2008 03:46 PM
Last Post: OneSadCookie
  Recompiling header files in Xcode scgames 7 7,787 Jun 30, 2006 07:39 PM
Last Post: ravuya
  xCode "Copy Files Build Phase" hangt5 2 7,405 Oct 5, 2005 03:36 PM
Last Post: hangt5