-
June 17th, 2019, 02:57 PM
#1
Downgrading C++ standard
Hi, ALL,
On my machine I have gcc 5.4 which defaults to C++11.
I tried to submit a pull request to one of the open-source projects which on Travis CI is using gcc 4.6.3, which default to C++98.
And so the compilation failed with:
error: cannot pass objects of non-trivially-copyable type ‘’ through ‘...’
Will I be able to simply downgrade the standard by using:
Code:
CXXFLAGS=-std=c++98 ../configure && make
or I will have to re-install older version of gcc? Or maybe there is another solution?
Thank you.
-
June 17th, 2019, 11:57 PM
#2
Re: Downgrading C++ standard
Yes, you should be able to do that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|