MobiNav

All Things Mobility

octobre 12th, 2009

How to Enable Objective C++ compilation?

There are three solutions to active Objective C++ compilations

  1. By Objective C++ default file extention: .mm — This a most security way to active Objective C++ complilation. Xcode will set automatically the corresponding runtime target for the project at build time.
  2. Set Xcode project build settings(under GCC 4.2 Language) — Either add -x objectiveC++ to « Other C Flags » or set « Compile Sources As » to « ObjectiveC++ »
  3. Select the file from Xcode’s Groups & Files list, select File->Get Info and changge the file type to « Sourcecode.cpp.objcpp ».
octobre 6th, 2009

Objective-C for C++ programmers

David Chisnall has been working with Objective-C for some years, both as a user and a compiler writer. In this three-part series, he gives a guided tour of the language.
Part 1 Takes a look at the history of the language and its underlying philosophy.
Part 2 Investigates some of the concrete syntax. such as defining and using classes.
Part 3 Covers the more advanced parts of the language.

|