TEchnical Cites

  • 12:31:27 pm on January 22, 2009 | 0
    Tags:

    How do I enable Objective-C++ compilation?
    There are two ways to go about enabling Objective-C++ functionality in your application. The preferred method is to change your file extension to .mm instead of .cpp. This will alert Xcode to set the correct runtime target for your project at build time.
    If you want to retain your .cpp file extension, you can also manually set your Xcode project’s OTHER_CFLAGS build setting to -x objectiveC++ or set the Compile Sources As build setting to Objective-C++.

    Advertisements
     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: