g++: error:unrecognized command line option ‘-std=c++2a’
0
0
Entering edit mode
20 months ago

I was installing a software in linux, it required "make" to compile, but it showed the error below. It seems the gcc version is too low, and then I upload gcc by conda, including gcc8,gcc9,gcc10 and gcc12. the error still exist. what should I do to solve this problem? Thanks a lot!

g++ -MMD -std=c++2a -I. -Wall  -fopenmp -mpopcnt -O3 -o IBIS.o -c IBIS.cc
g++: error:unrecognized command line option ‘-std=c++2a’
make: *** [IBIS.o] error1
gcc • 3.5k views
ADD COMMENT
1
Entering edit mode

How is this related to bioinformatics? General CS/compilation/code questions are better suited for StackOverflow after making sure that a google search of the error does not solve it.

ADD REPLY
0
Entering edit mode

Installing software is one of the most important things in bioinformatics, particularly for beginners. This isn't a 'general CS' question at all.

ADD REPLY
0
Entering edit mode

This is clearly an error related to g++. ATpoint is right that there is nothing that makes this "specifically" a bioinformatics question.

Anyway, the problem is that -std=c++2a is an alias for old gcc versions. The OP may want to try replacing this with either -std=c++20 or -std=c++2b (if there are c++23 features being used).

ADD REPLY

Login before adding your answer.

Traffic: 1646 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6