Using Gurobi in C++

First of all I am a complete newbie to C++, so if you know the answer please be patient with me ;). Here my problem:
I wanna solve an IP with Gurobi in a C++ Code. The Code itself seems fine since there are no expression marked as errors. However when I run the Code I get the following error report:
Undefined symbols for architecture x86_64:
and many lines like that:
"GRBLinExpr::GRBLinExpr(GRBVar, double)", referenced from:
bridge_problem::max_flow_lp(time_expanded_network&, lemon::ListDigraph&, lemon::DigraphExtender<lemon::ListDigraphBase>::ArcMap<int>&, lemon::DigraphExtender<lemon::ListDigraphBase>::ArcMap<int>&, lemon::DigraphExtender<lemon::ListDigraphBase>::NodeMap<int>&) in bridge_problem.cpp.o
I suppose that the mistake is in my CMakeList.txt file. This file was automatically created since I am using Clion and for including gurobi I entered those additional lines:
1
2
3
 include_directories(/Library/gurobi604/mac64/include) 
link_directories(/Library/gurobi604/mac64/lib/libgurobi_c++.a) 
link_directories(/Library/gurobi604/mac64/lib/libgurobi60.so) 

Any help is greatly appreciated and if you need any more information just let me know. (In case it is important I using a mac).
Last edited on
Nobody??? If you need more parts of the code or anything just let me know...
Topic archived. No new replies allowed.