Searching on the net I could not find any tutorials taking one through the steps to using the STL in an iOS app. So for instance, if I wanted to use a Vector in my app’s back end worker classes which don’t interact with any Cocoa structures.
If someone could perhaps give me a simple “Hello world” equivalent for this, that would be much appreciated. Or point me to any tutorials that they may have found.
Thanks
Here is some sample code. Create a new ios project, set BuildSettings->Apple LLVM Language->Compile Sources As to “Objective-C++”. Open “ViewController.m” and add this line
and put this into the viewDidLoad.
works for me.