-   Linux - Newbie (
-   -   copmpilation error (

hippo159 10-12-2004 09:46 AM

copmpilation error
I have writen a simpel Hello World program but when i try to compile it i get
"compilation of header file requested", how do i solve this problem?

§cc hello.h -o hello
gcc-3.3.2: "compilation of header file requested"


m0rg 10-12-2004 09:47 AM

I think you should name your file hello.c :)

r0b0 10-12-2004 09:48 AM

Name your files with C-language source code with .c extension, not with .h.

mv hello.h hello.c
cc hello.c -o hello

hippo159 10-12-2004 09:52 AM

Thank you

All times are GMT -5. The time now is 06:40 AM.