muchmarc
18-08-2002, 06:11
Da habe ich nun Zeit und wollte mir ein wenig c++ beibringen und
dann schaff' ich noch nicht mal ne cout - Ausgabe!
Kann mir jemand sagen, was die Kompilererrors bedeuten?
Code:
#include "iostream.h"
int main()
{
cout << "testtexte...\n";
return 0;
}
Compiler:
[muchmarc@Carida c++]$ gcc -Wall -o prog1 cout.cpp
/tmp/ccxKJ5WN.o: In function `main':
/tmp/ccxKJ5WN.o(.text+0xf): undefined reference to `cout'
/tmp/ccxKJ5WN.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
[muchmarc@Carida c++]$
THX
muchmarc
dann schaff' ich noch nicht mal ne cout - Ausgabe!
Kann mir jemand sagen, was die Kompilererrors bedeuten?
Code:
#include "iostream.h"
int main()
{
cout << "testtexte...\n";
return 0;
}
Compiler:
[muchmarc@Carida c++]$ gcc -Wall -o prog1 cout.cpp
/tmp/ccxKJ5WN.o: In function `main':
/tmp/ccxKJ5WN.o(.text+0xf): undefined reference to `cout'
/tmp/ccxKJ5WN.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
[muchmarc@Carida c++]$
THX
muchmarc