Irgendwas machst du falsch:
Code:
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
Dann:
Code:
me@dirtysquirrel (~) $ c++ -o test test.cpp
me@dirtysquirrel (~) $ ldd test
linux-gate.so.1 => (0xffffe000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7ebe000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7e99000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e8d000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7d5b000)
/lib/ld-linux.so.2 (0xb7fb9000)
me@dirtysquirrel (~) $ ./test
Hello, world!
Test ist übrigens auch ein "Kommando in grüner Schrift":
Code:
me@dirtysquirrel (~) $ file test
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, not stripped
Vielleicht postest du mal dein Programm.