0

I am compiling one code repository which has a makefile,

make INSTALL_PREFIX=/usr/local install

and I get the following 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=gnu++11 compiler options.

How can I enable ISO C++ 2011 standard?

Thanks,

2
  • 1
    Did you try -std=c++11 option? Commented Aug 11, 2016 at 11:53
  • actually, I am using GNU make. I use this command: make INSTALL_PREFIX=/usr/local install Commented Aug 11, 2016 at 11:54

1 Answer 1

1

You don't give any details on the code repository, does it use just a standard makefile, autotools, cmake ?

You may be able to just do a export CPPFLAGS="-std=c++11" prior to building building the code.

Sign up to request clarification or add additional context in comments.

8 Comments

It uses a standard makefile
I have used your suggestion, but still, I get the same error. :/
looking at the repo, in graehl/graehl.mk, -std=c++11 is already set in ARCH_FLAGS, so should be used when compiling - what is the actual error is shows and where within the make procress?
yep - isn't using the std option - it is the master branch from git? In graeh;/graehl.mk, is there a ARCH_FLAGS= setting ?
it cant find libz - maybe that you don't have the libz devel files installed, or they are in a place it is currently not looking for them at. the command 'locate libz' may help see if it had them installed somewhere else
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.