arno1991
Gebruiker
- Lid geworden
- 7 aug 2005
- Berichten
- 151
hallo,
ik probeer nu al een tijdje een tekstbericht "Hello World" op het terminal-venster te krijgen, zonder succes. Ik had de code uit een boek "C++ zonder stress" maar daget heeft al het grootste deel aangepast (dank u!). Dit is de code nu:
Dit tik ik nu in de terminal:
en daarna dit (vet) met de eerste lijnen van de foutmelding (dit is 1/6 ong. van het geheel)
ik gebruik Ubuntu linux 5.10 Breezy badger (gebaseerd op Debian)
hopelijk kan je me helpen,
arno
ik probeer nu al een tijdje een tekstbericht "Hello World" op het terminal-venster te krijgen, zonder succes. Ik had de code uit een boek "C++ zonder stress" maar daget heeft al het grootste deel aangepast (dank u!). Dit is de code nu:
#include <iostream>
using namespace std;
int main() {
cout << "Hello World\n";
return 0;
}
Dit tik ik nu in de terminal:
$ cd /home/arno1991/c++
en daarna dit (vet) met de eerste lijnen van de foutmelding (dit is 1/6 ong. van het geheel)
arno1991@ubuntu:~$ g++ -I /usr/include helloworld.cpp helloworld
g++: helloworld.cpp: Onbekend bestand of map
g++: helloworld: Onbekend bestand of map
g++: geen invoerbestanden
arno1991@ubuntu:~$ cd /home/arno1991/c++
arno1991@ubuntu:~/c++$ g++ -I /usr/include helloworld.cpp helloworld
g++: helloworld: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/i486-linux-gnu/bits/c++config.h:35,
door /usr/include/c++/4.0.2/iostream:43,
door helloworld.cpp:1:
/usr/include/c++/4.0.2/i486-linux-gnu/bits/os_defines.h:39:22: fout: features.h: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/i486-linux-gnu/bits/c++locale.h:41,
door /usr/include/c++/4.0.2/iosfwd:45,
door /usr/include/c++/4.0.2/ios:43,
door /usr/include/c++/4.0.2/ostream:44,
door /usr/include/c++/4.0.2/iostream:44,
door helloworld.cpp:1:
/usr/include/c++/4.0.2/cstring:51:20: fout: string.h: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/i486-linux-gnu/bits/c++locale.h:42,
door /usr/include/c++/4.0.2/iosfwd:45,
door /usr/include/c++/4.0.2/ios:43,
door /usr/include/c++/4.0.2/ostream:44,
door /usr/include/c++/4.0.2/iostream:44,
door helloworld.cpp:1:
/usr/include/c++/4.0.2/cstdio:52:19: fout: stdio.h: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/i486-linux-gnu/bits/c++locale.h:43,
door /usr/include/c++/4.0.2/iosfwd:45,
door /usr/include/c++/4.0.2/ios:43,
door /usr/include/c++/4.0.2/ostream:44,
door /usr/include/c++/4.0.2/iostream:44,
door helloworld.cpp:1:
/usr/include/c++/4.0.2/clocale:49:20: fout: locale.h: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/iosfwd:45,
door /usr/include/c++/4.0.2/ios:43,
door /usr/include/c++/4.0.2/ostream:44,
door /usr/include/c++/4.0.2/iostream:44,
door helloworld.cpp:1:
/usr/include/c++/4.0.2/i486-linux-gnu/bits/c++locale.h:44:38: fout: langinfo.h: Onbekend bestand of map
/usr/include/c++/4.0.2/i486-linux-gnu/bits/c++locale.h:45:56: fout: iconv.h: Onbekend bestand of map
/usr/include/c++/4.0.2/i486-linux-gnu/bits/c++locale.h:46:39: fout: libintl.h: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/i486-linux-gnu/bits/gthr.h:114, door /usr/include/c++/4.0.2/i486-linux-gnu/bits/c++io.h:37,
door /usr/include/c++/4.0.2/iosfwd:46,
door /usr/include/c++/4.0.2/ios:43,
door /usr/include/c++/4.0.2/ostream:44,
door /usr/include/c++/4.0.2/iostream:44,
door helloworld.cpp:1:
/usr/include/c++/4.0.2/i486-linux-gnu/bits/gthr-default.h:43:21: fout: pthread.h: Onbekend bestand of map
/usr/include/c++/4.0.2/i486-linux-gnu/bits/gthr-default.h:44:20: fout: unistd.h: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/iosfwd:47,
door /usr/include/c++/4.0.2/ios:43,
door /usr/include/c++/4.0.2/ostream:44,
door /usr/include/c++/4.0.2/iostream:44,
door helloworld.cpp:1:
/usr/include/c++/4.0.2/cctype:49:19: fout: ctype.h: Onbekend bestand of map
In bestand ingevoegd door /usr/include/c++/4.0.2/cwchar:51,
door /usr/include/c++/4.0.2/bits/postypes.h:46,
door /usr/include/c++/4.0.2/iosfwd:49,
door /usr/include/c++/4.0.2/ios:43,
door /usr/include/c++/4.0.2/ostream:44,
door /usr/include/c++/4.0.2/iostream:44,
door helloworld.cpp:1:
ik gebruik Ubuntu linux 5.10 Breezy badger (gebaseerd op Debian)
hopelijk kan je me helpen,
arno