$ gcc main.cpp
/tmp/cc0eCcKK.o: In function `main':
main.cpp:(.text+0x32): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0x42): undefined reference to `Window::Window(bool)'
main.cpp:(.text+0x53): undefined reference to `Window::loop()'
main.cpp:(.text+0x66): undefined reference to `Window::~Window()'
main.cpp:(.text+0x72): undefined reference to `operator delete(void*)'
main.cpp:(.text+0x87): undefined reference to `operator delete(void*)'
/tmp/cc0eCcKK.o: In function `__static_initialization_and_destruction_0(int, int)':
main.cpp:(.text+0xc2): undefined reference to `std::ios_base::Init::Init()'
main.cpp:(.text+0xd7): undefined reference to `std::ios_base::Init::~Init()'
/tmp/cc0eCcKK.o:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
collect2: error: ld returned 1 exit status
Users browsing this forum: No registered users and 2 guests