Codeblocks shell application stopped running Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
sly_chandan
Knows some wx things
Knows some wx things
Posts: 48
Joined: Fri Sep 25, 2015 2:33 pm

Codeblocks shell application stopped running

Post by sly_chandan » Mon Dec 10, 2018 9:46 am

Codeblocks shell application have stopped working.

I have tried re-installing and compiling wxwidgets and also re-installed Codeblocks but shell application wont build

I get the following errors on build:

obj\Debug\T2App.o: In function `[email protected]':
C:/Programming/WxWidgets Apps/T2/T2App.cpp:17: undefined reference to `_imp___Z7wxEntryP11HINSTANCE__S0_Pci'
obj\Debug\T2App.o: In function `Z11wxCreateAppv':
C:/Programming/WxWidgets Apps/T2/T2App.cpp:17: undefined reference to `_imp___ZN16wxAppConsoleBase17CheckBuildOptionsEPKcS1_'
obj\Debug\T2App.o: In function `ZN5T2App6OnInitEv':
C:/Programming/WxWidgets Apps/T2/T2App.cpp:23: undefined reference to `_imp___Z22wxInitAllImageHandlersv'
obj\Debug\T2App.o: In function `ZN16wxAppConsoleBase22SetInitializerFunctionEPFP12wxAppConsolevE':
C:/wxWidgets-3.1.1/include/wx/app.h:454: undefined reference to `_imp___ZN16wxAppConsoleBase12ms_appInitFnE'
obj\Debug\T2App.o: In function `ZN16wxAppConsoleBase11GetInstanceEv':
C:/wxWidgets-3.1.1/include/wx/app.h:462: undefined reference to `_imp___ZN16wxAppConsoleBase14ms_appInstanceE'
obj\Debug\T2App.o: In function `ZN5T2AppC1Ev':
C:/Programming/WxWidgets Apps/T2/T2App.h:15: undefined reference to `_imp___ZN5wxAppC2Ev'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x8): undefined reference to `wxApp::GetClassInfo() const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x14): undefined reference to `wxObject::CreateRefData() const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x18): undefined reference to `wxObject::CloneRefData(wxRefCounter const*) const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x24): undefined reference to `wxEvtHandler::ProcessEvent(wxEvent&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x28): undefined reference to `wxEvtHandler::QueueEvent(wxEvent*)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x30): undefined reference to `wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x34): undefined reference to `wxEvtHandler::TryBefore(wxEvent&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x38): undefined reference to `wxEvtHandler::TryAfter(wxEvent&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x40): undefined reference to `wxApp::GetEventTable() const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x44): undefined reference to `wxApp::GetEventHashTable() const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x48): undefined reference to `wxEvtHandler::DoSetClientObject(wxClientData*)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x4c): undefined reference to `wxEvtHandler::DoGetClientObject() const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x50): undefined reference to `wxEvtHandler::DoSetClientData(void*)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x54): undefined reference to `wxEvtHandler::DoGetClientData() const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x58): undefined reference to `wxApp::Initialize(int&, wchar_t**)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x64): undefined reference to `wxAppBase::OnRun()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x68): undefined reference to `wxAppConsoleBase::OnLaunched()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x70): undefined reference to `wxAppBase::OnExit()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x78): undefined reference to `wxApp::CleanUp()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x80): undefined reference to `wxAppConsoleBase::Exit()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x84): undefined reference to `wxAppBase::OnInitCmdLine(wxCmdLineParser&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x88): undefined reference to `wxAppBase::OnCmdLineParsed(wxCmdLineParser&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x8c): undefined reference to `wxAppConsoleBase::OnCmdLineHelp(wxCmdLineParser&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x90): undefined reference to `wxAppConsoleBase::OnCmdLineError(wxCmdLineParser&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x94): undefined reference to `wxAppConsoleBase::SetCLocale()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x98): undefined reference to `wxAppConsoleBase::FilterEvent(wxEvent&)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0x9c): undefined reference to `wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xa0): undefined reference to `wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xa4): undefined reference to `wxAppConsoleBase::OnUnhandledException()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xa8): undefined reference to `wxApp::OnExceptionInMainLoop()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xac): undefined reference to `wxAppConsoleBase::StoreCurrentException()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xb0): undefined reference to `wxAppConsoleBase::RethrowStoredException()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xb4): undefined reference to `wxAppConsoleBase::ProcessPendingEvents()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xb8): undefined reference to `wxAppConsoleBase::Pending()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xbc): undefined reference to `wxAppConsoleBase::Dispatch()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xc0): undefined reference to `wxAppConsoleBase::MainLoop()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xc4): undefined reference to `wxAppConsoleBase::ExitMainLoop()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xc8): undefined reference to `wxApp::WakeUpIdle()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xcc): undefined reference to `wxAppBase::ProcessIdle()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xd4): undefined reference to `wxAppConsoleBase::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xd8): undefined reference to `wxAppConsoleBase::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xdc): undefined reference to `wxAppBase::CreateTraits()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xe0): undefined reference to `wxAppBase::OnInitGui()'
obj\Debug\T2App.o:T2App.cpp:(.rdata$_ZTV5T2App[__ZTV5T2App]+0xe4): undefined reference to `wxAppBase::SafeYield(wxWindow*, bool)'
Process terminated with status 1 (0 minute(s), 18 second(s))
50 error(s), 0 warning(s) (0 minute(s), 18 second(s))

sly_chandan
Knows some wx things
Knows some wx things
Posts: 48
Joined: Fri Sep 25, 2015 2:33 pm

Re: Codeblocks shell application stopped running

Post by sly_chandan » Mon Dec 10, 2018 2:20 pm

FIXED!

I had not linked the compiler properly!

Installed Mingw again and it worked!!!

Post Reply