• 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
Re: NSObjCRuntime.h won't compile? Or .mm files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjCRuntime.h won't compile? Or .mm files?


  • Subject: Re: NSObjCRuntime.h won't compile? Or .mm files?
  • From: Bob Sabiston <email@hidden>
  • Date: Thu, 22 Sep 2005 15:05:07 -0500


On Sep 22, 2005, at 2:15 PM, email@hidden wrote:

Subject: Re: NSObjCRuntime.h won't compile?  Or .mm files?

To: Xcode Users <email@hidden>

Message-ID: <email@hidden">email@hidden>

Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


On Sep 22, 2005, at 8:07 AM, Bob Sabiston wrote:



Are there any settings in Xcode that say whether the compiler  

should be able to do objective-C, anything like that?




Check out the "Compile Sources As" build setting.


But if your sources are named with the appropriate extensions for the  

style of code they contain, this shouldn't be a problem.


It looks like you may be including a Cocoa header from a C++ file,  

possibly through another header or your prefix header.  It would be  

helpful to see the entire build transcript line for the compilation  

step that is failing (in the build transcript, something 6 or 7 lines  

tall that starts with "CompileC")


Chris


Yeah, it says compile according to suffix.  Also I changed the name of my file from
"CoreImage.mm" to "CoreImageStuff.mm", as one person suggested, but that did not fix it.

Here is the build transcript line (I think).  Thanks for any help!
Bob


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
    mkdir "/Volumes/JR/build/Snarf.build/Debug/Snarf OSX Debug.build/Objects-normal/ppc"
    cd "/Volumes/JR"
    /usr/bin/gcc-4.0 -x c++ -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 c++ -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"


 _______________________________________________
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: NSObjCRuntime.h won't compile? Or .mm files?
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Using AppleScript to access a Copy File Phase in an Xcode project
  • Next by Date: Re: Specifying Where The Build Product Should Be Placed
  • Previous by thread: Re: NSObjCRuntime.h won't compile? Or .mm files?
  • Next by thread: Re: NSObjCRuntime.h won't compile? Or .mm files?
  • Index(es):
    • Date
    • Thread