SupaSONiC
19-11-2001, 15:42
Hi!
Ist warscheinlich eine ziemliche Newbie-Frage aber ich weiß nich weiter. Ich hab hier ein C++ buch, darin war der übliche hello-world-quelltext:
::(mathis)::(android.prosaqx.org)::(~/cpp):: cat cpp.c
#include <stdio.h>
int main() {
cout << "Hello World";
}
wenn ich versuche, das zu compilen:
::(mathis)::(android.prosaqx.org)::(~/cpp):: gcc -o cpp cpp.c
cpp.c: In function `main':
cpp.c:4: `cout' undeclared (first use in this function)
cpp.c:4: (Each undeclared identifier is reported only once
ich denke das hat was mit headern zu tun oder?
Wär super wenn ihr mir helfen könntet!
THX
SupaSONiC
Ist warscheinlich eine ziemliche Newbie-Frage aber ich weiß nich weiter. Ich hab hier ein C++ buch, darin war der übliche hello-world-quelltext:
::(mathis)::(android.prosaqx.org)::(~/cpp):: cat cpp.c
#include <stdio.h>
int main() {
cout << "Hello World";
}
wenn ich versuche, das zu compilen:
::(mathis)::(android.prosaqx.org)::(~/cpp):: gcc -o cpp cpp.c
cpp.c: In function `main':
cpp.c:4: `cout' undeclared (first use in this function)
cpp.c:4: (Each undeclared identifier is reported only once
ich denke das hat was mit headern zu tun oder?
Wär super wenn ihr mir helfen könntet!
THX
SupaSONiC