Code Monkey home page Code Monkey logo

Comments (3)

Gerjo avatar Gerjo commented on August 10, 2024 6

This particular error is caused by using a wrong version of the GCC compiler. I believe this has to do with the ABI interface changing with later versions of C++.

The Gurobi website lists gcc-4.6 as the latest supported[0], though the solver library clearly needs a newer version because it specifies the -std=c++11 option in CMake, and not -std=c++0x which is what gcc-4.6 supports. The gcc-4.8.1 compiler is first that supports the -std=c++11 option[1], and will get rid of the above linker error.

Assuming you run Ubuntu, you can sudo apt-get install g++-4.8 to get the latest 4.8 compiler. Following that, you must adjust your CMake invocation to:
cmake . -DGUROBI_ROOT_DIR=/home/gerjo/gurobi603/linux64 -DGUROBI_VERSION=60 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8

Setting -DGUROBI_ROOT_DIR to your installation.

I also hasten to add, that I'm using Gurobi 6.0.3 which you can acquire here (requires login). Not sure if that makes a difference, but the version number seems to match the one given in the build instructions under step 4.

Perhaps the repository maintainer, @eldar, can comment on which GCC version to use exactly?

[0] http://www.gurobi.com/products/supported-platforms
[1] https://gcc.gnu.org/projects/cxx-status.html#cxx11

from deepcut.

bghani avatar bghani commented on August 10, 2024 1

Thank you, Gerjo. I had the exact same problem. Your solution worked for me.

from deepcut.

derkbreeze avatar derkbreeze commented on August 10, 2024 1

@Gerjo Thank you Gerjo for your nice advice! Really works for me using default gcc and g++ 5.4.0 in Ubuntu16.04. I installed g++ 4.8.0 and it really helps a lot!

from deepcut.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.