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

Library does not compile with G++ under OS X #39

Open
nicola-gigante opened this issue Dec 12, 2015 · 1 comment
Open

Library does not compile with G++ under OS X #39

nicola-gigante opened this issue Dec 12, 2015 · 1 comment

Comments

@nicola-gigante
Copy link

With G++ version 4.8 or 4.9 on OS X, installed from Homebrew, the library does not compiler:

optional.hpp: In function 'void std::experimental::fail(const char*, const char*, unsigned int)':
optional.hpp:211:29: error: '_assert' was not declared in this scope
     _assert(expr, file, line);

If I add an underscore to call __assert instead of _assert everything works. It seems that it fails to recognize that it is using the GNU library

@nicola-gigante nicola-gigante changed the title Library does not compiler with G++ under OS X Library does not compile with G++ under OS X Dec 13, 2015
@akrzemi1
Copy link
Owner

Does it work now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants