CMakeLists with C++11

112 views
Skip to first unread message

J Alonso

unread,
Oct 8, 2015, 7:47:56 PM10/8/15
to Gurobi Optimization
Dear all,

is there a way to use link Gurobi in a C++11 project?

My CMakeLists.txt now looks like:

cmake_minimum_required (VERSION 2.6)
project (main)

SET (CMAKE_CXX_FLAGS "-std=c++0x")

include_directories("/Library/gurobi605/mac64/include/")
LINK_DIRECTORIES("/Library/gurobi605/mac64/lib/")

add_executable(main.cpp)
target_link_libraries (requestRobotAssigner gurobi_c++ gurobi60)

I am getting:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I need -std=c++0x for some calls in my code.

Any help would be appreciated.

Thanks!
Javier

J Alonso

unread,
Oct 9, 2015, 10:52:50 AM10/9/15
to Gurobi Optimization
So, does Gurobi now support C++11?
Or, is there a way to make it compatible?

Thanks,
Javier

Renan Garcia

unread,
Nov 6, 2015, 4:22:51 PM11/6/15
to gur...@googlegroups.com
--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages