Carbon Programming/Getting started

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Requirements[edit | edit source]

To use Carbon, you will need to know the C programming language.

Installation and usage[edit | edit source]

The Carbon framework can be used when you create a new project within XCode 2.5. XCode will auto-create the details and files within the project, as well as provide a basic event handler.

If you are using the command-line compiler, or are otherwise creating the application manually, the framework needs to be specified manually:

gcc -framework Carbon

Files that need to access the Carbon library must have the following include statement within the file:

#include <Carbon/Carbon.h>