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

std=c++03 flag not supported by some versions of g++ #156

Open
colinbourassa opened this issue Jan 4, 2019 · 0 comments
Open

std=c++03 flag not supported by some versions of g++ #156

colinbourassa opened this issue Jan 4, 2019 · 0 comments

Comments

@colinbourassa
Copy link

colinbourassa commented Jan 4, 2019

Red Hat Enterprise Linux 6.9
g++ 4.4.7
CMake 3.4.1
Ruby 2.4.2
Qt 4.6.2

The native extension fails to build with the above configuration. Specifically, the try_run() call in ext/smoke/qtcore/QtGuess.txt fails, and the subsequent if() check fails because the qdefines_run variable is never created.

I traced the problem to the explicit compiler flag -std=c++03 added by ext/CMakeLists.txt. Some versions of g++ (including 4.4.7) do not support this standard. Most recommendations that I've found suggest switching to -std=c++98. I tested this by modifying ext/CMakeLists.txt and verified that the native extension build completed successfully when using the c++98 standard.

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

1 participant