CS170
Creating projects
To create a project with Netbeans:
- New Project
- Select C/C++, with the option C/C++ Application
- Uncheck "Create Main File" (you'll provide your own)
- Click "Finish"
- Find "Source Files" under the new project.
- Right click on "Source Files", select "Add Existing Item..."
- Navigate to add desired .c files
- When appropriate, add header (".h") files by doing a similar
thing for "Header Files."
- The hammer icon builds the project; the hammer/broom icon
cleans and builds it. Makefile is automatically generated.
- The play button builds and runs the program.
To create a project with Xcode:
- new/project
- select Command Line Tool
- make sure to select C language
- create
- Find "Source Files" under the new project.
- delete main.c
- right click on project folder, "Add Files to """
- select .h and .c files to add
- hit play button (Makefile is automatically generated)
Back to CS170 home page.