Comments (3)
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.
Thank you, Gerjo. I had the exact same problem. Your solution worked for me.
from deepcut.
@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)
- solutionFname HOT 1
- Could NOT find GLUT?
- Error using hdf5writec
- Error in demo_multiperson (line 12) HOT 1
- How to train?
- Requirements
- Error in _cutoff_tile function
- Errors while compiling CPU-only version
- ResNet-50.caffemodel HOT 1
- GPU out of memory error HOT 3
- Failed to build Cafee HOT 8
- Runtime error HOT 14
- solver-callback HOT 1
- how to computer the mean average precision ?
- Evaluation on MPII Human Pose Dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepcut.