Mac static linking error

Hi,

Using TurboActivate on Mac. Dynamic linking with libTurboActivate.dylib is fine, but static linking with libTurboActivate.a does not work. I included the relevant framework libs as mentioned on https://wyday.com/limelm/help/using-turboactivate-on-mac-os-x/

I get some undefined symbols of C++ std lib:---Undefined symbols for architecture x86_64: "std::string::find_last_not_of(char const*, unsigned long) const", referenced from: TrimStr(std::string const&) in libTurboActivate.a(Trial.o)---Yosemite 10.10.3, Apple LLVM version 6.1.0 (clang-602.0.49)

Regards,

Seb

Add libstdc++.6.dylib to your app.

That worked thanks.

Seb

I'm building a console application now from scratch and am getting this same error. I don't know how to add libstdc++.6.dylib to my XCode Project. Can you offer a bit more guidance?

Thanks,Arie

It depends on the version of XCode you're using (it seems to be vastly different for every version) but this might help: https://developer.apple.com/library/mac/recipes/xcode_help-project_editor/Articles/AddingaLibrarytoaTarget.html

Okay, got it. It's now compiling in Xcode. Thanks!