-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linker errors with compiled libraries on OS X #32
Comments
Hi Stephen, Did you figure out your problem? It seems you are using Qt and from my experience, you can get linker errors because the SDK that Qt is pointing to is different from the one it was compiled with. —gary On Jun 30, 2014, at 5:40 PM, Stephen Birarda notifications@github.com wrote:
|
Does RtMidi require Qt to build? Edit: It does not, from what I can see. Maybe I'm confused about what you mean. |
Not at all. I was just pointing out that if you try to use RtMidi together with Qt (which appeared to be the case), then linker errors can result because of the Qt settings. —gary On Jul 7, 2014, at 2:29 PM, Stephen Birarda notifications@github.com wrote:
|
Ahh - are you talking about the OS X SDK? |
OK, I was confused by the “Application” reference. Anyway, is this still a problem? —gary On Jul 7, 2014, at 2:42 PM, Stephen Birarda notifications@github.com wrote:
|
Yeah - if I compile RtMidi and then link to the static or dynamic libs I get this. No error if I just include the RtMidi header and cpp file in my project. |
I ran into a similar sounding issue on another project. Worth making sure both are linking to the same stdlib. |
Awesome @drewish I think you nailed it. Clang defaults to compile RtMidi with libc++ and our project is libstdc++ causing linker errors with std::string. Now I just have to figure out why clang cannot find the OS X framework headers if I try to compile with libstdc++. |
See if dberesford/exiv2node#26 has any clues. |
Can RtMidi be compiled with libstdc++ to avoid this problem? |
To avoid having to fix this with other dependencies in the future anyways we're going to move our project over to libc++. Thanks for helping me figure this out! |
👍 For now it's working including the file directly in the project and defining MACOSX_CORE |
@garyscavone I think this can be closed. |
On OS X 10.9.3 I'm having issues linking the compiled rtmidi libraries, static or dynamic.
Both cause me to get a linker error no matter what API function I call from my application.
I've defined MACOSX_CORE.
The text was updated successfully, but these errors were encountered: