Skip to content
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

Linking against libc++ instead of the GNU libstdc++ on OSX. #426

Closed
zoq opened this issue Mar 28, 2015 · 3 comments
Closed

Linking against libc++ instead of the GNU libstdc++ on OSX. #426

zoq opened this issue Mar 28, 2015 · 3 comments

Comments

@zoq
Copy link
Member

zoq commented Mar 28, 2015

Since we are using C++11 features we link against libstdc++ when using clang. libstdc++ is tried-and-tested, but it is a dead end on OSX that results in some problems like:

error: no template named 'forward' in namespace 'std';

Due to Apple not upgrading past GCC 4.2 for license reasons, Apple switched the standard library, so clang++ started to link against libc++ rather than libstdc++. The good news is that libc++ is specifically designed so that we can use it in the same process as libstdc++.

@zoq
Copy link
Member Author

zoq commented Mar 30, 2015

Patched in 8aa3abb

@saketkc This should also fix the homebrew science build error. If you like we can create a patch against mlpack 1.0.12.

@zoq zoq added the s: fixed label Mar 30, 2015
@saketkc
Copy link

saketkc commented Mar 30, 2015

Thanks, @zoq. I will update it.

@rcurtin
Copy link
Member

rcurtin commented Mar 30, 2015

Issue appears fixed, so I'm closing it. If I shouldn't do that, then it can be reopened. :)

@rcurtin rcurtin closed this as completed Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants