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

how to fix the C++11 error #2

Closed
Johnson-yue opened this issue Oct 9, 2020 · 3 comments
Closed

how to fix the C++11 error #2

Johnson-yue opened this issue Oct 9, 2020 · 3 comments

Comments

@Johnson-yue
Copy link

Hi, I using tensorflow==1.14.0 , CUDA 10.0 , cuDNN 7.5.1 on Ubuntu16.04
but I meet a C++ bug

C++ versions less than C++11 are not supported
#error This file requires compiler and library support for the ISO c++ 2011 standard. This support must be enabled with the -std=C++11 or std=gun++11 compiler options

But I do not know where should I add "-std=c++11 or -std=gun++11" or Should I update my g++ version ??
How I fix it ?

@Johnson-yue
Copy link
Author

when I add ‘--std=c++11’ in _run_cmd()
it failed

@ekolodin
Copy link

ekolodin commented Oct 9, 2020

when I add ‘--std=c++11’ in _run_cmd()
it failed

Have a look here: https://stackoverflow.com/questions/59342888/tensorflow-error-this-file-requires-compiler-and-library-support-for-the-iso-c

@Johnson-yue
Copy link
Author

thank you very much , it solve my problem!!!

8secz-johndpope pushed a commit to johndpope/stylegan2-ada that referenced this issue Dec 29, 2020
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