![]() |
|
|
|
|
|||||||
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What The World Needs Now... | Neo | What's on Your Mind? | 17 | 3 Weeks Ago 07:48 AM |
| hello world | JeepResQ | SUN Solaris | 0 | 11-30-2007 06:11 AM |
| New to Linux world. | kyoist | Linux | 3 | 09-29-2005 07:42 PM |
| new to unix world | winter | UNIX for Dummies Questions & Answers | 5 | 11-06-2000 03:19 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello World Program
I'm trying to compile and run the following program:
[File: hello/hello.c] #include <stdio.h> int main () { printf("Hello World\n"); return (0); } This is what I'm getting in Terminal: [localhost:~/learning_c] aaron% cc -g -ohello hello.c hello.c:1: error: parse error before '[' token [localhost:~/learning_c] aaron% Any tips? I'm running OSX 10.4.7 by the way. |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|