Oliver Bettinger <ollo@gmx.net> writes: > As I said g++ test.cpp > my compiler returned: > /usr/lib/crt1.o(.text+0x36): undefined reference to 'main' > collect2: ld returned 1 exit status You forgot to include a main() function, which is required. Have you written a C or C++ program before? This always works the same way.