I am working on macOS Mojave v10.14.6. I am running my code in VSCode, but I cannot compile it using following command:
clang++ -std=c++17 -stdlib=libc++ helloworld.cpp -o helloworld.exe -l /Library/gurobi901/mac64/include -L /Library/gurobi901/mac64/lib -lgurobi_c++ -lgurobi90 -m64
(I named the mip1_c++ file as helloworld)
I got following errors:
ld: library not found for -l/Library/gurobi901/mac64/include
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I guess I did not successfully link the library to the project? I am new to Gurobi. Could any one help me out? Thanks!
Please sign in to leave a comment.