|Mar 19, 2007, 03:33 PM||#1|
Xcode project (GCC) is compiling my ObjC++ files as C
Hey, I'm trying to compile a project that contains ObjC++ and C++ files. The problem is that GCC is compiling the files as C/ObjC. The build log had this flag
Btw, I can upload the project if needed.
|Mar 19, 2007, 04:49 PM||#3|
You can use .cpp as well.
Under Project/Project Settings there is a Build Tab. In there there should be an option for 'Compile Source As'. On my system it's set as 'According to File Type', but I guess you could force it to C++.
Also under preferences File Types the file types for source code are under text/sourcecode… but I'm not sure what to do with them. I doubt that they would need 'fixing' anyway.
b e n
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|So it seems that 10.9 will come with XCode 5.0 and get rid of llvm-gcc altogether.||iBug2||OS X||1||Jan 29, 2013 12:39 PM|
|How to ignore project files with xcode git ?||mikezang||iPhone/iPad Programming||1||Jan 7, 2013 05:14 AM|
|compiling VTK using Xcode||ilantal||Mac Programming||7||Jan 2, 2013 11:43 AM|
|Cross compiling for windows using Xcode||e-r-a-n||Mac Programming||3||Dec 2, 2012 01:58 PM|
|no gcc after installing xcode! help! urgent!||miissts||Mac Programming||4||Aug 28, 2012 10:00 AM|
All times are GMT -5. The time now is 08:03 PM.