Hello. I have been experiencing multiple undefined reference problems when trying to compile a very simple c++ source code. In fact, the code is the same as "mip1_c++.cpp", except that I changed "#include "gurobi_c++.h" to "#include "/media/34GB/Arquivos-de-Programas-Linux/gurobi801/linux64/include/gurobi_c++.h" that it is where the file it is in my system.
The first three error lines are:
copy_mip1_c++.cpp:(.text+0x2b): undefined reference to GRBEnv::GRBEnv(bool)
copy_mip1_c++.cpp:(.text+0x44): undefined reference to GRBModel::GRBModel(GRBEnv const&)
copy_mip1_c++.cpp:(.text+0x8d): undefined reference to GRBModel::addVar(double, double, double, char, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)
I also added the lib dir to my ld.so.conf:
and then executed ldconfig, to make the system aware of changes on it.
Yet, these error messages persist. What shall I do to solve it? Thanks for your time
Please sign in to leave a comment.