Setting Gurobi on Eclipse C with MinGW

139 views
Skip to first unread message

Dan

unread,
Jul 22, 2018, 9:37:44 AM7/22/18
to Gurobi Optimization
Hi all,

What are the settings to be done for working on a C project with gurobi (with MinGW)?
I couldn't find a guide besides setting a .jar file for a java project in eclipse, which I assume is irrelevant.

What I've set so far is:
- Added 'gurobi_c.h' file from the include path using C:\gurobi702\win64\include 
- Added 'gurobi70' from the library path (using C:\gurobi702\win64\lib)

Still not working unfortunately. It recognizes the gurobi_c.h file but it says that symbols such as 'GRB_BINARY' could not be resolved.
Any help?
Dan

Virginia Costa

unread,
Jul 23, 2018, 12:26:14 AM7/23/18
to gur...@googlegroups.com
Hi, Dan.
I work on C++ eclipse projects with gurobi and other libraries. When I use Eclipse, I never use its makefile. I always do my own. 
Sometime ago, I had some troubles with eclipse makefile. For gurobi, you have to set the enviroments variables.  You're using windows, aren't you?  So, you have to see how to do it in windows. An other thing is to see how you're calling gurobi in your makefile... You have to add -l options for your compiler.
Did you do all that things I wrote above?
Best Regards,
Virginia.


--

---
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