Thursday, July 03, 2008

Using Mac OS X frameworks with eclipse IDE

If you are a Mac OS X programmer, you must be aware of frameworks.

If you are like me, who like to use Eclipse than XCode, You can link your programs to the proper frameworks by following steps..

Skill Level: Intermediate

step 01: Open your Eclipse project.
step 02: Right click on your project, select the "properties".
step 03: Now go to "C/C++ Build"->"Setting".
step 04: Go to the "Tool Settings" tab.
step 05: Select the "Miscellaneous" settings, under "Mac OS X C++ Linker".
step 06: You will see a text box with title "Linker Flags"

Check the following screenshot..



Step 07: Enter your framework names here.. Precede your framework name with -framework flag.

Eg: If you want to link with Carbon framework, then enter it as -framework carbon

If you want to link with more than one framework add them in the same line using space to separate them..
Eg: -framework carbon -framework opengl
Step 08: Click on Apply to apply the new build settings..

If you like this post, please leave a comment.. :-)

Technorati Tags: , , , ,

5 comments: