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

stdexcept missing when compiling in 32-bit mode with clang-trunk #1041

Closed
pps83 opened this issue Aug 11, 2018 · 2 comments
Closed

stdexcept missing when compiling in 32-bit mode with clang-trunk #1041

pps83 opened this issue Aug 11, 2018 · 2 comments
Labels

Comments

@pps83
Copy link

pps83 commented Aug 11, 2018

stdexcept can be included when compiling using clang-trunk, however, when you use -m32 to compile in 32-bit mode stdexcept becomes missing and the error output is:

#include <stdexcept>
         ^~~~~~~~~~~
1 error generated.
Compiler returned: 1```
@RubenRBS RubenRBS added the bug label Aug 11, 2018
@cpplearner
Copy link

Per #431, you need -stdlib=libc++. (If you need to use libstdc++, --gcc-toolchain=/opt/compiler-explorer/gcc-snapshot seems to do the trick.)

@mattgodbolt
Copy link
Member

Seems to have become fixed along the way.

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

No branches or pull requests

4 participants