0

Example error:

"std::string::data() const", referenced from:

The link command is doing:

-lstdc++

And I have the C++ Standard Library set to libstdc++ in Build Settings.

Is there anything else I should check?

Miles
  • 1,615
  • 4
  • 17
  • 42

1 Answers1

0

Even though I added the link flag -lstdc++, XCode 5 overwrites that option. I had to add a dummy C++ class (.h and .mm files) to get Xcode to use the std c++. Got the tip here

Miles
  • 1,615
  • 4
  • 17
  • 42