Settings Xcode 5.0

853 views
Skip to first unread message

Fabian Andres Castaño Giraldo

unread,
Oct 3, 2013, 12:36:31 AM10/3/13
to gur...@googlegroups.com
Hi all!

Does anyone knows how to set up Xcode 5.0 to work with Gurobi 5.6?

I really appreciate any help.

Best regards,

Fabian Castaño

Greg Glockner

unread,
Oct 3, 2013, 2:28:01 AM10/3/13
to gur...@googlegroups.com
We have tested that the Xcode 5 command-line tools (make, gcc, g++) work with Gurobi Optimizer 5.6.0. We haven't tested the Xcode IDE but we expect the steps to be similar to those from an older thread in this discussion group.

Fabian Andres Castaño Giraldo

unread,
Oct 3, 2013, 5:51:04 PM10/3/13
to gur...@googlegroups.com
No, 

It doesn't work.

Thanks anyway,

Fabian

Greg Glockner

unread,
Oct 3, 2013, 6:15:25 PM10/3/13
to gur...@googlegroups.com
> It doesn't work.

Xcode 5's gcc and g++ work from the Terminal.

I got a C program working inside the Xcode IDE by following my post from 10/30/2012. I am investigating an issue with C++ inside Xcode and will post back when I figure it out.

Greg Glockner

unread,
Oct 3, 2013, 7:00:58 PM10/3/13
to gur...@googlegroups.com
Here are updated instructions for the Xcode 5 IDE:

1. Create a new project, selecting OS X > Application > Command Line Tool
2. Set the Type to C or C++, depending on the project
3. Add the file lib/libgurobi56.so; for a C++ program, also add the filelib/libgurobi_c++.a
4. In the project Build Settings:
a. Add the Gurobi include subdirectory to the Header Search Paths
b. For a C++ project, set Apple LLVM 5.0 - Language - C++ > C++ Standard Library to libstdc++

Adjust the name in step 3 depending on the Gurobi version.

Fabian Andres Castaño Giraldo

unread,
Oct 4, 2013, 11:20:24 AM10/4/13
to gur...@googlegroups.com
Thanks, 

That works perfectly.

Regards,

Fabian
Reply all
Reply to author
Forward
0 new messages