Adding the Csound API into a Xcode (3.2) Project:

I decided to use CppSound which is optimized for C++ usage.

Choose a "New Project" as "Command Line-Tool".
Including the header files into your main.cpp file:

#include <CsoundLib/CppSound.hpp>
#include <CsoundLib/csPerfThread.hpp>


Compiling everything on command-line would look like:

"g++-4.0 main.cpp -o testApp
-I/Library/Frameworks/CsoundLib.framework/Versions/Current/Headers
-framework CsoundLib
-L/Library/Frameworks/CsoundLib.framework/Versions/Current/
-l_csnd"

But if you use XCode you have to include the Framework into your Project by right-click on the left project panel (Pict 2):
Now choose "CsoundLib.framework" from the list. There is a 64 Bit Version as well (but I havn't tested it right now).

Lets see what Xcode does for us:

g++-4.0 main.cpp -o testApp
-I/Library/Frameworks/CsoundLib.framework/Versions/Current/Headers -> done automaticly
-framework CsoundLib -> automaticly by dragging
-L/Library/Frameworks/CsoundLib.framework/Versions/Current/ -> done automaticly
-l_csnd -> Linking = Symbol ordering Flags THIS IS LEFT TO BE DONE BY OURSELFES..

Go into: Project->Project Settings->Tab:Build
Scroll down until "Linking" (Pict 1)
Edit: Symbol Ordering Flags "-l_csnd"
Note: If you've included the 32 Bit version, you have to set the "Architectures" to "32-Bit". (Pict 3)

Done!

 

(download)