From: <Ji...@t-...> - 2012-04-20 10:44:51
|
I am a really new user and trying to see how the whol thing works. I have installed the most recent version and trying to compile a well known program "hello world" as follows: #include <stdio.h> int main { printf("hello world n"); return 0; } However, I am getting error messages following the command "gcc hello.c -o hello" as detailed below: C:UsersZBADocumentsWenzhong JiangPrgs>gcc hello.c -o hello hello.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token My question ist simple, what the compiler ist complaining about and how can I fix it ? Thank you very much and best regards. |