Mein Programmcode:
#include <iostream> using namespace std; int main() { cout << "test"; return 0; }
Habe versucht über die Konsole zu kompilieren:
marcel@marcels:~/Desktop$ gcc -o test test.cpp /tmp/ccxPkl81.o: In function `main': test.cpp:(.text+0xa): undefined reference to `std::cout' test.cpp:(.text+0xf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' /tmp/ccxPkl81.o: In function `__static_initialization_and_destruction_0(int, int)': test.cpp:(.text+0x3d): undefined reference to `std::ios_base::Init::Init()' test.cpp:(.text+0x42): undefined reference to `std::ios_base::Init::~Init()' /tmp/ccxPkl81.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status marcel@marcels:~/Desktop$
Anschließend mit Anjuta: Da steht dann, dass glib nicht installiert ist, aber eigentlich ist laut synaptic alles soweit installiert.
Gibt es ein Problem damit, dass ich ein 64bit System verwende?