Entering edit mode
19 months ago
wangjincheng
•
0
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
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.
Installing software is one of the most important things in bioinformatics, particularly for beginners. This isn't a 'general CS' question at all.
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).