Results 1 to 5 of 5

Thread: Errors while trying to Cross-Compile

  1. #1

    Default Errors while trying to Cross-Compile

    Hi, I'm new here...

    Normally Google would be my friend, but it seems as if most people don't have this problem.

    I am running on Ubuntu 8.10 (Intrepid Ibex) and with ClanLib 0.8.1. I can compile the examples in the ClanLib folder just fine with "make" and then run the Linux Executable with ./(programname).

    However, I want to cross-compile the example program "Adventure Scene" with MinGW, so I open a Terminal, change directories to the example, and run this command:

    Code:
    i586-mingw32msvc-gcc -o AdventureScene.exe app.cpp -mwindows
    And it spews out this error:

    Code:
    /tmp/ccyyts6E.o:app.cpp:(.text+0xe): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
    /tmp/ccyyts6E.o:app.cpp:(.text+0x52): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
    /tmp/ccyyts6E.o:app.cpp:(.text+0x8b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
    /tmp/ccyyts6E.o:app.cpp:(.text+0xd0): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
    /tmp/ccyyts6E.o:app.cpp:(.text+0x120): undefined reference to `std::ios_base::Init::Init()'
    /tmp/ccyyts6E.o:app.cpp:(.text+0x19b): undefined reference to `std::ios_base::Init::~Init()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN8CL_ErrorD1Ev[CL_Error::~CL_Error()]+0xe): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneAppC1Ev[AdventureSceneApp::AdventureSceneApp()]+0xe): undefined reference to `CL_ClanApplication::CL_ClanApplication()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneAppD0Ev[AdventureSceneApp::~AdventureSceneApp()]+0x18): undefined reference to `CL_ClanApplication::~CL_ClanApplication()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneAppD0Ev[AdventureSceneApp::~AdventureSceneApp()]+0x2f): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneAppD1Ev[AdventureSceneApp::~AdventureSceneApp()]+0x18): undefined reference to `CL_ClanApplication::~CL_ClanApplication()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneAppD1Ev[AdventureSceneApp::~AdventureSceneApp()]+0x2f): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN9__gnu_cxx13new_allocatorISt10_List_nodeIP10CL_Slot_v0EE10deallocateEPS4_j[__gnu_cxx::new_allocator<std::_List_node<CL_Slot_v0*> >::deallocate(std::_List_node<CL_Slot_v0*>*, unsigned int)]+0xd): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN16CL_SlotParent_v0clEv[CL_SlotParent_v0::operator()()]+0x46): undefined reference to `CL_Slot_Generic::get_slot_ref() const'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN10CL_Slot_v0D2Ev[CL_Slot_v0::~CL_Slot_v0()]+0x18): undefined reference to `CL_Slot_Generic::~CL_Slot_Generic()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN10CL_Slot_v0D2Ev[CL_Slot_v0::~CL_Slot_v0()]+0x2f): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN16CL_MethodSlot_v0I17AdventureSceneAppED0Ev[CL_MethodSlot_v0<AdventureSceneApp>::~CL_MethodSlot_v0()]+0x2f): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN16CL_MethodSlot_v0I17AdventureSceneAppED1Ev[CL_MethodSlot_v0<AdventureSceneApp>::~CL_MethodSlot_v0()]+0x2f): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN10CL_Slot_v0D0Ev[CL_Slot_v0::~CL_Slot_v0()]+0x18): undefined reference to `CL_Slot_Generic::~CL_Slot_Generic()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN10CL_Slot_v0D0Ev[CL_Slot_v0::~CL_Slot_v0()]+0x2f): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN10CL_Slot_v0D1Ev[CL_Slot_v0::~CL_Slot_v0()]+0x18): undefined reference to `CL_Slot_Generic::~CL_Slot_Generic()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN10CL_Slot_v0D1Ev[CL_Slot_v0::~CL_Slot_v0()]+0x2f): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN10CL_Slot_v0C2Ev[CL_Slot_v0::CL_Slot_v0()]+0xe): undefined reference to `CL_Slot_Generic::CL_Slot_Generic()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN9__gnu_cxx13new_allocatorISt10_List_nodeIP10CL_Slot_v0EE8allocateEjPKv[__gnu_cxx::new_allocator<std::_List_node<CL_Slot_v0*> >::allocate(unsigned int, void const*)]+0x26): undefined reference to `std::__throw_bad_alloc()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN9__gnu_cxx13new_allocatorISt10_List_nodeIP10CL_Slot_v0EE8allocateEjPKv[__gnu_cxx::new_allocator<std::_List_node<CL_Slot_v0*> >::allocate(unsigned int, void const*)]+0x3b): undefined reference to `operator new(unsigned int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZNSt4listIP10CL_Slot_v0SaIS1_EE9_M_insertESt14_List_iteratorIS1_ERKS1_[std::list<CL_Slot_v0*, std::allocator<CL_Slot_v0*> >::_M_insert(std::_List_iterator<CL_Slot_v0*>, CL_Slot_v0* const&)]+0x26): undefined reference to `std::_List_node_base::hook(std::_List_node_base*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN12CL_Signal_v07connectEP10CL_Slot_v0[CL_Signal_v0::connect(CL_Slot_v0*)]+0x12): undefined reference to `CL_Slot_Generic::add_signal_ref(CL_Signal*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN12CL_Signal_v07connectEP10CL_Slot_v0[CL_Signal_v0::connect(CL_Slot_v0*)]+0x3e): undefined reference to `CL_Slot::CL_Slot(CL_Slot_Generic*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN12CL_Signal_v07connectI17AdventureSceneAppEE7CL_SlotPT_MS3_FvvE[CL_Slot CL_Signal_v0::connect<AdventureSceneApp>(AdventureSceneApp*, void (AdventureSceneApp::*)())]+0xc): undefined reference to `___gxx_personality_sj0'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN12CL_Signal_v07connectI17AdventureSceneAppEE7CL_SlotPT_MS3_FvvE[CL_Slot CL_Signal_v0::connect<AdventureSceneApp>(AdventureSceneApp*, void (AdventureSceneApp::*)())]+0x4c): undefined reference to `operator new(unsigned int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN12CL_Signal_v07connectI17AdventureSceneAppEE7CL_SlotPT_MS3_FvvE[CL_Slot CL_Signal_v0::connect<AdventureSceneApp>(AdventureSceneApp*, void (AdventureSceneApp::*)())]+0xbc): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN8CL_ErrorC1ERKS_[CL_Error::CL_Error(CL_Error const&)]+0x12): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x12): undefined reference to `___gxx_personality_sj0'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x50): undefined reference to `std::allocator<char>::allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x72): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x90): undefined reference to `CL_ConsoleWindow::CL_ConsoleWindow(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xa9): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xd0): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xed): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x106): undefined reference to `CL_ConsoleWindow::redirect_stdio()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x123): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x162): undefined reference to `CL_SetupCore::CL_SetupCore(bool)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x17d): undefined reference to `CL_SetupDisplay::CL_SetupDisplay(bool)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x198): undefined reference to `CL_SetupGL::CL_SetupGL(bool)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x1a7): undefined reference to `std::allocator<char>::allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x1c9): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x1f6): undefined reference to `CL_DisplayWindow::CL_DisplayWindow(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, bool, bool, int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x20f): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x242): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x26b): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x298): undefined reference to `CL_DisplayWindow::sig_window_close()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x2c7): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x329): undefined reference to `std::cout'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x338): 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/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x343): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x349): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x359): undefined reference to `std::cout'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x35e): 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/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x369): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x36f): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x37f): undefined reference to `std::cout'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x384): 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/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x38f): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x395): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3a5): undefined reference to `std::cout'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3aa): 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/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3b5): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3bb): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3c6): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3cc): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3dc): undefined reference to `std::cout'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3e1): 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/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3ec): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x3f2): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x401): undefined reference to `std::allocator<char>::allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x423): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x432): undefined reference to `std::allocator<char>::allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x454): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x463): undefined reference to `std::allocator<char>::allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x485): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x4aa): undefined reference to `Scene::Scene(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x4c3): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x4f6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x51f): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x538): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x564): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x5ad): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x5d6): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x5ef): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x61b): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x664): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x68d): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x6a4): undefined reference to `operator new(unsigned int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x6d3): undefined reference to `std::allocator<char>::~allocator()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x71e): undefined reference to `Player::Player(Scene*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x749): undefined reference to `operator delete(void*)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x782): undefined reference to `Scene::draw()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x78f): undefined reference to `CL_Display::flip(int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x79c): undefined reference to `CL_System::keep_alive(int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x7b5): undefined reference to `CL_Keyboard::get_keycode(int, int)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x809): undefined reference to `Scene::~Scene()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x83f): undefined reference to `Scene::~Scene()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x872): undefined reference to `CL_Slot::~CL_Slot()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x8a5): undefined reference to `CL_Slot::~CL_Slot()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x8d8): undefined reference to `CL_DisplayWindow::~CL_DisplayWindow()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x90b): undefined reference to `CL_DisplayWindow::~CL_DisplayWindow()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x93e): undefined reference to `CL_SetupGL::~CL_SetupGL()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x971): undefined reference to `CL_SetupGL::~CL_SetupGL()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x9a4): undefined reference to `CL_SetupDisplay::~CL_SetupDisplay()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0x9d7): undefined reference to `CL_SetupDisplay::~CL_SetupDisplay()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xa0a): undefined reference to `CL_SetupCore::~CL_SetupCore()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xa3d): undefined reference to `CL_SetupCore::~CL_SetupCore()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xa85): undefined reference to `___cxa_get_exception_ptr'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xab0): undefined reference to `___cxa_begin_catch'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xac9): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xae7): undefined reference to `std::terminate()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xaf4): undefined reference to `std::cout'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xb03): 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/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xb15): 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/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xb20): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xb26): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xb35): undefined reference to `CL_ConsoleWindow::display_close_message()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xcc0): undefined reference to `___cxa_end_catch'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xcdd): undefined reference to `___cxa_end_catch'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xd0b): undefined reference to `CL_ConsoleWindow::~CL_ConsoleWindow()'
    /tmp/ccyyts6E.o:app.cpp:(.text$_ZN17AdventureSceneApp4mainEiPPc[AdventureSceneApp::main(int, char**)]+0xd48): undefined reference to `CL_ConsoleWindow::~CL_ConsoleWindow()'
    /tmp/ccyyts6E.o:app.cpp:(.rdata$_ZTI17AdventureSceneApp[typeinfo for AdventureSceneApp]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
    /tmp/ccyyts6E.o:app.cpp:(.rdata$_ZTI18CL_ClanApplication[typeinfo for CL_ClanApplication]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
    /tmp/ccyyts6E.o:app.cpp:(.rdata$_ZTI16CL_MethodSlot_v0I17AdventureSceneAppE[typeinfo for CL_MethodSlot_v0<AdventureSceneApp>]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
    /tmp/ccyyts6E.o:app.cpp:(.rdata$_ZTI10CL_Slot_v0[typeinfo for CL_Slot_v0]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
    /tmp/ccyyts6E.o:app.cpp:(.rdata$_ZTI15CL_Slot_Generic[typeinfo for CL_Slot_Generic]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
    /tmp/ccyyts6E.o:app.cpp:(.rdata$_ZTV10CL_Slot_v0[vtable for CL_Slot_v0]+0x10): undefined reference to `___cxa_pure_virtual'
    /tmp/ccyyts6E.o:app.cpp:(.rdata$_ZTI8CL_Error[typeinfo for CL_Error]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
    /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib/libmingw32.a(main.o):(.text+0xe3): undefined reference to `_WinMain@16'
    collect2: ld returned 1 exit status
    Anyone know what could be wrong?

    Thanks in advance, and sorry for the trouble.

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    I do not know how to use mingw (and i have never used it!)

    But i think the problem is with linking libraries

    You used
    i586-mingw32msvc-gcc -o AdventureScene.exe app.cpp -mwindows

    But you have not specified which ClanLib libraries are to be linked, (including the standard c++ library)

  3. #3

    Default

    Quote Originally Posted by rombust View Post
    I do not know how to use mingw (and i have never used it!)
    [Y]ou have not specified which ClanLib libraries are to be linked, (including the standard c++ library)
    err...
    How would I go about linking libraries?

    Sorry for the noobish question...

    Yes, you are right about the standard library - I tried to run the exact same command on a program that merely outputs a message on the screen with "cout" and then accepts a string with "cin", but MinGW gave me errors on that too.

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Look at http://www.mingw.org/category/wiki/link , this may help

  5. #5

    Default Maybe...

    Maybe it's also because I was evoking i586-mingw32msvc-gcc instead of i586-mingw32msvc-g++

    I'll test it out when I get home. Thanks


    EDIT: hmm, that didn't really help...
    Last edited by juicebox360; 01-30-2009 at 12:12 AM.

Similar Threads

  1. Errors in ClanLib headers
    By mmiikkee12 in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-03-2007, 08:17 AM
  2. Clanlibs display errors
    By megumiaraki in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 12-07-2006, 07:20 AM
  3. i_my_id errors
    By in forum Funeral Quest
    Replies: 3
    Last Post: 11-26-2003, 02:04 AM
  4. Windsock Errors
    By Tobin in forum Funeral Quest
    Replies: 4
    Last Post: 04-19-2003, 07:21 PM
  5. FQ errors
    By in forum Funeral Quest
    Replies: 3
    Last Post: 08-29-2002, 02:21 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •