I have a Cocoa app that compiles and links fine. I've since broken out some of the code into a static library and then have gone back and tried to link that libMyLib.a library to my original program.
I now get a linker error
Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
referencing one of the source modules that use to live in my main project, but now lives in the library.
I've tried to go back and match up each compiler and linker setting to see which one is different, but I just can't seem to nail it down. My hunch is that I'm linking with a C STD and need a C++ STD, but everything is using the C99 compiler with standard libs.
Any ideas?
Thanks!
linking in libc++.dylib fixed the issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With