Re: NSObjCRuntime.h won't compile? Or .mm files?
Re: NSObjCRuntime.h won't compile? Or .mm files?
- Subject: Re: NSObjCRuntime.h won't compile? Or .mm files?
- From: Chris Espinosa <email@hidden>
- Date: Thu, 22 Sep 2005 20:54:46 -0700
On Sep 22, 2005, at 1:05 PM, Bob Sabiston wrote:
<x-tad-smaller>CompileC "build/Snarf.build/Debug/Snarf OSX Debug.build/Objects-normal/ppc/CoreImageStuff.o" CoreImageStuff.mm normal ppc c++ com.apple.compilers.gcc.4_0</x-tad-smaller>
<x-tad-smaller> mkdir "/Volumes/JR/build/Snarf.build/Debug/Snarf OSX Debug.build/Objects-normal/ppc"</x-tad-smaller>
<x-tad-smaller> cd "/Volumes/JR"</x-tad-smaller>
<x-tad-smaller> /usr/bin/gcc-4.0 </x-tad-smaller><x-tad-smaller>-x c++</x-tad-smaller><x-tad-smaller> -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -g -O0 -fmessage-length=0 -mtune=G4 -fvisibility=hidden "-I/Volumes/JR/build/Snarf.build/Debug/Snarf OSX Debug.build/Snarf.hmap" -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0 -mdynamic-no-pic "-F/Volumes/JR/build/Debug" "-I/Volumes/JR/build/Debug/include" "-I/Volumes/JR/build/Snarf.build/Debug/Snarf OSX Debug.build/DerivedSources" </x-tad-smaller><x-tad-smaller>-x c++</x-tad-smaller><x-tad-smaller> -fno-inline -include /Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/MacXcodePrefix-cxronkxbfgghesdlixzpdiycpjan/MacXcodePrefix.pch -c "/Volumes/JR/CoreImageStuff.mm" -o "/Volumes/JR/build/Snarf.build/Debug/Snarf OSX Debug.build/Objects-normal/ppc/CoreImageStuff.o"</x-tad-smaller>
Well there ya go. That "-x c++" needs to be "-x objective-c++". (And there should only be one of them). Now we just need to find out why it isn't.
Can you check your Other C Flags in your target settings and see if "-x c++" is set there?
Chris
_______________________________________________
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