My code runs correctly in the terminal when I compile it like
g++ -g -O2 -std=c++11 -I/usr/local/include -L/usr/local/lib main.cpp -lboost_system -lboost_filesystem -fopenmp -lpthread -o main -lz
But when I run it from CLion it gives a bunch of errors specifically linking
Undefined reference to gzread/gzclose/gzopen
which I believe is due to not specifying the compile options while compiling.
How do I set the compile options in CLion?
Aucun commentaire:
Enregistrer un commentaire