Gurobi 5.6.2 in Eclipse C++ on Mac OS X using GCC 4.8 COMPILER
725 views
Skip to first unread message
Sanjana Sridhar
unread,
Aug 19, 2014, 11:54:41 AM8/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Hello,
I am trying to get Gurobi working on Eclipse C++ with GCC 4.8 compiler and get some of the examples running. I have performed the following steps:
Added the include path (/Library/gurobi562/mac64/include) under Project ->Properties ->C/C++ Build ->Settings ->Cross G++ Compiler ->Includes
Added the Library Search Path ( /Library/gurobi/562/mac64/lib ) under Project ->Properties ->C/C++ Build ->Settings ->Cross G++ Linker ->Libraries
Added the Libraries gurobi_c++ and gurobi_56
It still doesn't seem to be working. I get errors like GRBenv could not be resolved.
I got the gurobi optimizer to work on XCode because it is on the Supported platforms list http://www.gurobi.com/products/gurobi-optimizer/platforms but I was wondering if there is anyway to get it working on Eclipse since I'm using the GCC 4.8 compiler.
Any help would be greatly appreciated.
Thanks,
Sanjana
T.
unread,
Aug 19, 2014, 12:33:53 PM8/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
This should be possible. Could you post the exact error you get?
Sanjana Sridhar
unread,
Aug 19, 2014, 12:52:53 PM8/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Hi,
This is the error i get when I just try to initialize the environment and model variables
../Solvers/gurobi_wrapper.h:35:3: error: 'GRBEnv' does not name a type
GRBEnv env;
^
../Solvers/gurobi_wrapper.h:36:3: error: 'GRBModel' does not name a type
GRBModel model;
^
T.
unread,
Aug 19, 2014, 3:41:36 PM8/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Does your code contain something like
extern"C"{ #include"gurobi_c.h" }
?
Sanjana Sridhar
unread,
Aug 19, 2014, 7:11:59 PM8/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Hello,
No it does not. Should I add this to my code? Also does this mean i have to actually copy paste the gurobi_c.h and gurobi_c++.h files into my project or is it enough if I have specified the include path?
Thank you
T.
unread,
Aug 20, 2014, 1:42:08 AM8/20/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Hmm, if you are using the C++ API of gurobi, it should be ok to include gurobi_c++.h. Are you doing this? Sorry, I'm only used to use the C API, not the C++ API.
So, when your are using the C++ API, this code should be in your header file (otherwise my above code):
#include"gurobi_c++.h"
You never have to copy any headers into your project folder, it is sufficient to specify the include path.
rapha...@yahoo.com.br
unread,
May 31, 2015, 9:36:55 AM5/31/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Hi Sanjana, I would like your help to configure gurobi on xcode.
May you help me?
TDS
unread,
Feb 25, 2016, 7:43:02 AM2/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gurobi Optimization
Hi Sanjana,
Did you ever solved the problem? I am experiencing the same problem.
Thansk in advance!
Kostja Siefen
unread,
Feb 26, 2016, 2:09:07 AM2/26/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gurobi Optimization
Please read FAQ 41 on how to use Gurobi in an Eclipse project: