Hallo,
ich beschäftige mich gerade mit c++ und schon beim einfachen hello world script haperts :(
Also, ich habe den g++ compiler und wenn ich mein testscript complieren will geht das nicht:
C:\cpp>g++ -o hello.exe hello_world.cpp
hello_world.cpp:1:19: stdio.h: No such file or directory
hello_world.cpp:7: error: main' must return
int'
hello_world.cpp: In function int main(...)': hello\_world.cpp:9: error:
printf' undeclared (first use this function)
hello_world.cpp:9: error: (Each undeclared identifier is reported only once for
each function it appears in.)
Das Script sieht so aus:
#include <stdio.h>
void main()
{
printf("Hello World\n");
}
Kann mir da wer weiterhelfen?
Danke, Egon.