I am having a problem when trying to use the Gurobi library in C++. Specifically, I am getting "undefined reference" errors during the linking process. I have added the necessary lines to my bashrc and am compiling my test file with the command
g++ test.cpp -o main -I../../../../software/gurobi1000/linux64/include -L../../../../software/gurobi1000/linux64/lib
I have attempted to research the issue, and have come across the following link by Gurobi support:
I have verified that the
libgurobi_c++.a file is present in the lib directory, however, the issue remains unresolved.
I would appreciate any help in resolving this issue.
Please sign in to leave a comment.