Tips
How to: Write and compile C programs on Mac OS X
25/01/11 13:37
How to: Write and compile C programs on Mac OS X

During a programming class back in 2006, I had to find a way to write and compile C programs on my iBook G4. This was one of the ways I found to do that job.
Required:

During a programming class back in 2006, I had to find a way to write and compile C programs on my iBook G4. This was one of the ways I found to do that job.
Required:
- Apple Developer Tools (available on OS X Install DVD)
- A text editor (I use TextWrangler)
- Install Apple Developer Tools on the Mac OS X Install DVD by inserting Disk 1 and choosing Developer Tools.
- Write a program with a text editor and save it with the extension .c
- Open Terminal by navigating to Applications > Utilities > Terminal
- Type gcc with a space afterwards
- Drag the file with the .c extension to the Terminal window to place the location of the file.
- Press Enter.
- This will generate a file called a.out inside your user folder.
- Type ~/a.out
- Press Enter.
- Watch your program come alive!
Using SSH with Terminal in Mac OS X
25/01/11 13:21
| To begin using | Terminal with SSH:
| Double-click the | Terminal icon to launch the application. Terminal is located in the Utilities folders in the Applications folder.
| A | Terminal window will appear with a command prompt.
| At the prompt, type in | ssh your-login-name@terpconnect.umd.edu.
| You will be prompted to type in your | Directory password.
| Once you successfully login, a | TerpConnect command prompt will appear.




