In terminal, this works:
g++ -lgmp main.cpp
while this does not:
g++ main.cpp
I am using X-code as my IDE and how could I tell X-code to add the statement '-lgmp' when compiling? Thank you:)
Edit: I did according to the article providing the answer:

but I still fail:

and this is the error message:

More information: I have to use c++98 instead of c++11 because one of my package Gurobi requires that. Do you know any solution? thank you:)