Im having trouble to use Gecode (http://www.gecode.org/download.html) framework for my project.
I downloaded and installed the framework. Now it can be found under
/Library/Frameworks/gecode.framework
I created a new "Command Line Tool" project, and selected "C++" for the type.
Now i tried to build a sample code with following includes:
#include <gecode/driver.hh>
#include <gecode/int.hh>
#include <gecode/minimodel.hh>
--> Xcode is complaining that file is not found.
I tried to compile in terminal with g++ and llvm-g++, it compiles without any warnings or errors
To make GeCode or any other framework work in Xcode you need to do the following.
Under Linked Frameworks and Libraries, click the +
sign.
Select the framework from the list display or else click on Add Other if your framework is not found in the list.
Press Command+Shift+G
and enter the path directly. In my case for gecode
it was /Library/Frameworks/
and then select the desired framework you want to include in your project and then press open.
Command + r
and Voila!! it should work.Cheers!!