newbie- it just doesn't link the new project Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
debil
In need of some credit
In need of some credit
Posts: 3
Joined: Thu Dec 22, 2011 12:48 pm

newbie- it just doesn't link the new project

Post by debil » Thu Dec 22, 2011 1:06 pm

just installed wxDev-C++ on windows7-x86.
created new wxFrame project, or new wxDialog project and in both it doesn't link.
it seems that I miss the wxwidgets implementation (object files), although I didn't change anything from the default configuration.
the wxWidgets object files exist in my C:\Program Files\Dev-Cpp\lib folder.
simple "hello world" default program does compile and work.

here is the compile log window:

Code: Select all

Compiler: Default GCC compiler
Building Makefile: "C:\Users\Debil-User\Documents\devCFrameProj\Makefile.win"
Executing  make...
mingw32-make.exe -f "Makefile.win" all 
"windres.exe" --input-format=rc -o Objects/MingW/TestFrameProject_private.res --include-dir "C:/PROGRA~1/Dev-Cpp/include/common" Objects/MingW/TestFR~1.RC -O coff

g++.exe "Objects/MingW/TestFrameProjectApp.o" "Objects/MingW/TestFrameProjectFrm.o" Objects/MingW/TestFrameProject_private.res -o "Output/MingW/TestFrameProject.exe" -L"C:/Program Files/Dev-Cpp/Lib" -mwindows -lwxmsw28u -lwxmsw28u_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32  -g3 -s  

Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x46): undefined reference to `_imp___ZN12wxAppConsole17CheckBuildOptionsEPKcS1_'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x6d): undefined reference to `_imp___ZN5wxAppC2Ev'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0xd2): undefined reference to `_imp___ZN12wxAppConsole14ms_appInstanceE'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x103): undefined reference to `_imp___Z7wxEntryP11HINSTANCE__S0_Pci'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x14d): undefined reference to `_imp___ZN12wxStringBase4nposE'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x15e): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x191): undefined reference to `_imp__wxDefaultSize'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x19a): undefined reference to `_imp__wxDefaultPosition'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text+0x2a2): undefined reference to `_imp___ZN12wxAppConsole12ms_appInitFnE'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text$_ZN22TestFrameProjectFrmAppD1Ev[TestFrameProjectFrmApp::~TestFrameProjectFrmApp()]+0x14): undefined reference to `_imp___ZN5wxAppD2Ev'
Objects/MingW/TestFrameProjectApp.o:TestFrameProjectApp.cpp:(.text$_ZN22TestFrameProjectFrmAppD0Ev[TestFrameProjectFrmApp::~TestFrameProjectFrmApp()]+0x15): undefined reference to `_imp___ZN5wxAppD2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x61): undefined reference to `_imp___ZN12wxStringBase4nposE'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x79): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0xd0): undefined reference to `_imp__wxNullIcon'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x1dd): undefined reference to `_imp__wxFrameNameStr'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x1f5): undefined reference to `_imp___ZN12wxStringBase4nposE'

Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x203): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x225): undefined reference to `_imp___ZN11wxFrameBaseC2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x22f): undefined reference to `_imp___ZTV7wxFrame'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x23d): undefined reference to `_imp___ZN7wxFrame4InitEv'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x286): undefined reference to `_imp___ZN7wxFrame6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x2f4): undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x31c): undefined reference to `_imp___ZN11wxFrameBaseD2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x3ad): undefined reference to `_imp__wxFrameNameStr'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x3c5): undefined reference to `_imp___ZN12wxStringBase4nposE'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x3d3): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x3f5): undefined reference to `_imp___ZN11wxFrameBaseC2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x3ff): undefined reference to `_imp___ZTV7wxFrame'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x40d): undefined reference to `_imp___ZN7wxFrame4InitEv'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x456): undefined reference to `_imp___ZN7wxFrame6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x4c4): undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x4ec): undefined reference to `_imp___ZN11wxFrameBaseD2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x554): undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x574): undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x595): undefined reference to `_imp___ZN7wxFrameD2Ev'

Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x5e6): undefined reference to `_imp___ZN7wxFrame13sm_eventTableE'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x608): undefined reference to `_imp___ZN16wxEventHashTableC1ERK12wxEventTable'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x624): undefined reference to `_imp__wxEVT_CLOSE_WINDOW'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x648): undefined reference to `_imp__wxEVT_NULL'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text+0x699): undefined reference to `_imp___ZN16wxEventHashTableD1Ev'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZN12wxWindowBase7SetNameERK8wxString[wxWindowBase::SetName(wxString const&)]+0x1b): undefined reference to `_imp___ZN12wxStringBaseaSERKS_'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZNK12wxWindowBase7GetNameEv[wxWindowBase::GetName() const]+0x17): undefined reference to `_imp__wxEmptyString'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZN12wxWindowBase19SetAcceleratorTableERK18wxAcceleratorTable[wxWindowBase::SetAcceleratorTable(wxAcceleratorTable const&)]+0x1f): undefined reference to `_imp___ZN8wxObject3RefERKS_'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZNK12wxWindowBase10HasCaptureEv[wxWindowBase::HasCapture() const]+0x8): undefined reference to `_imp___ZN12wxWindowBase10GetCaptureEv'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZNK12wxWindowBase20GetDefaultAttributesEv[wxWindowBase::GetDefaultAttributes() const]+0x1c): undefined reference to `_imp___ZN12wxWindowBase25GetClassDefaultAttributesE15wxWindowVariant'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZN12wxWindowBase18SetInitialBestSizeERK6wxSize[wxWindowBase::SetInitialBestSize(wxSize const&)]+0x3): undefined reference to `_imp___ZN12wxWindowBase14SetInitialSizeERK6wxSize'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZN20wxTopLevelWindowBase8IsActiveEv[wxTopLevelWindowBase::IsActive()]+0x8): undefined reference to `_imp___ZN12wxWindowBase9FindFocusEv'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZN20wxTopLevelWindowBase8IsActiveEv[wxTopLevelWindowBase::IsActive()]+0x11): undefined reference to `_imp___Z19wxGetTopLevelParentP8wxWindow'
Objects/MingW/TestFrameProjectFrm.o:TestFrameProjectFrm.cpp:(.text$_ZN7wxFrame19MSWTranslateMessageEP6tagMSG[wxFrame::MSWTranslateMessage(tagMSG*)]+0x19): undefined reference to `_imp___ZN7wxFrame21MSWDoTranslateMessageEPS_P6tagMSG'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [Output/MingW/TestFrameProject.exe] Error 1
if I didn't change any default setting by a mistake, then the tutorial in http://wxdsgn.sourceforge.net/?q=node/13 just doesn't works.

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: newbie- it just doesn't link the new project

Post by tbreina » Thu Dec 22, 2011 5:24 pm

Can you try Execute->Rebuild All (Ctrl+F11) and post the compiler output?

-Tony
Everybody's got something to hide except for me and my monkey.

debil
In need of some credit
In need of some credit
Posts: 3
Joined: Thu Dec 22, 2011 12:48 pm

Re: newbie- it just doesn't link the new project

Post by debil » Thu Dec 22, 2011 5:32 pm

tried also what is written here:
http://forums.wxwidgets.org/viewtopic.php?f=28&t=32551
it doesn't link anyway.

Code: Select all

Compiler: Default GCC compiler
Building Makefile: "C:\Users\Debil-User\Documents\devCFrameProj\Makefile.win"
Executing  make clean
rm -f "Objects/MingW/TestFrameProjectApp.o" "Objects/MingW/TestFrameProjectFrm.o" Objects/MingW/TestFrameProject_private.res "Output/MingW/TestFrameProject.exe"

g++.exe -c TestFrameProjectApp.cpp -o Objects/MingW/TestFrameProjectApp.o -I"C:/Program Files/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5" -I"C:/Program Files/Dev-Cpp/include" -I"C:/Program Files/Dev-Cpp/" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/plotctrl" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/sheet" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/treemultictrl" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/things" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx" -I"C:/Program Files/Dev-Cpp/include/3rdparty" -I"C:/Program Files/Dev-Cpp/include/common/wx/msw" -I"C:/Program Files/Dev-Cpp/include/common/wx/generic" -I"C:/Program Files/Dev-Cpp/include/common/wx/fl" -I"C:/Program Files/Dev-Cpp/include/common/wx/gizmos" -I"C:/Program Files/Dev-Cpp/include/common/wx/html" -I"C:/Program Files/Dev-Cpp/include/common/wx/mmedia" -I"C:/Program Files/Dev-Cpp/include/common/wx/net" -I"C:/Program Files/Dev-Cpp/include/common/wx/ogl" -I"C:/Program Files/Dev-Cpp/include/common/wx/plot" -I"C:/Program Files/Dev-Cpp/include/common/wx/protocol" -I"C:/Program Files/Dev-Cpp/include/common/wx/stc" -I"C:/Program Files/Dev-Cpp/include/common/wx/svg" -I"C:/Program Files/Dev-Cpp/include/common/wx/xml" -I"C:/Program Files/Dev-Cpp/include/common/wx/xrc" -I"C:/Program Files/Dev-Cpp/include/common/wx" -I"C:/Program Files/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D_UNICODE -DWXUSINGDLL   -fexpensive-optimizations -O3 -g3

g++.exe -c TestFrameProjectFrm.cpp -o Objects/MingW/TestFrameProjectFrm.o -I"C:/Program Files/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5" -I"C:/Program Files/Dev-Cpp/include" -I"C:/Program Files/Dev-Cpp/" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/plotctrl" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/sheet" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/treemultictrl" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/things" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx" -I"C:/Program Files/Dev-Cpp/include/3rdparty" -I"C:/Program Files/Dev-Cpp/include/common/wx/msw" -I"C:/Program Files/Dev-Cpp/include/common/wx/generic" -I"C:/Program Files/Dev-Cpp/include/common/wx/fl" -I"C:/Program Files/Dev-Cpp/include/common/wx/gizmos" -I"C:/Program Files/Dev-Cpp/include/common/wx/html" -I"C:/Program Files/Dev-Cpp/include/common/wx/mmedia" -I"C:/Program Files/Dev-Cpp/include/common/wx/net" -I"C:/Program Files/Dev-Cpp/include/common/wx/ogl" -I"C:/Program Files/Dev-Cpp/include/common/wx/plot" -I"C:/Program Files/Dev-Cpp/include/common/wx/protocol" -I"C:/Program Files/Dev-Cpp/include/common/wx/stc" -I"C:/Program Files/Dev-Cpp/include/common/wx/svg" -I"C:/Program Files/Dev-Cpp/include/common/wx/xml" -I"C:/Program Files/Dev-Cpp/include/common/wx/xrc" -I"C:/Program Files/Dev-Cpp/include/common/wx" -I"C:/Program Files/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D_UNICODE -DWXUSINGDLL   -fexpensive-optimizations -O3 -g3

"windres.exe" --input-format=rc -o Objects/MingW/TestFrameProject_private.res --include-dir "C:/PROGRA~1/Dev-Cpp/include/common" Objects/MingW/TestFR~1.RC -O coff

g++.exe "Objects/MingW/TestFrameProjectApp.o" "Objects/MingW/TestFrameProjectFrm.o" Objects/MingW/TestFrameProject_private.res -o "Output/MingW/TestFrameProject.exe" -L"C:/Program Files/Dev-Cpp/Lib" -mwindows -lwxmsw28u -lwxmsw28u_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lwxmsw28u -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32  -g3 -s  

Objects/MingW/TestFrameProjectApp.o: In function `ZN22TestFrameProjectFrmAppD1Ev':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectApp.cpp:(.text+0x46): undefined reference to `_imp___ZN12wxAppConsole17CheckBuildOptionsEPKcS1_'
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectApp.cpp:(.text+0x6d): undefined reference to `_imp___ZN5wxAppC2Ev'
Objects/MingW/TestFrameProjectApp.o: In function `Z8wxGetAppv':

C:/Program Files/Dev-Cpp/include/common/wx/app.h:287: undefined reference to `_imp___ZN12wxAppConsole14ms_appInstanceE'
Objects/MingW/TestFrameProjectApp.o: In function `WinMain':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectApp.cpp:13: undefined reference to `_imp___Z7wxEntryP11HINSTANCE__S0_Pci'
Objects/MingW/TestFrameProjectApp.o: In function `ZN22TestFrameProjectFrmApp6OnInitEv':
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase4nposE'
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp__wxDefaultSize'
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp__wxDefaultPosition'
Objects/MingW/TestFrameProjectApp.o: In function `GLOBAL__I__Z11wxCreateAppv':
C:/Program Files/Dev-Cpp/include/common/wx/app.h:279: undefined reference to `_imp___ZN12wxAppConsole12ms_appInitFnE'
Objects/MingW/TestFrameProjectApp.o: In function `ZN22TestFrameProjectFrmAppD1Ev':

C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectApp.cpp:(.text$_ZN22TestFrameProjectFrmAppD1Ev[TestFrameProjectFrmApp::~TestFrameProjectFrmApp()]+0x14): undefined reference to `_imp___ZN5wxAppD2Ev'
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectApp.cpp:(.text$_ZN22TestFrameProjectFrmAppD0Ev[TestFrameProjectFrmApp::~TestFrameProjectFrmApp()]+0x15): undefined reference to `_imp___ZN5wxAppD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrm17CreateGUIControlsEv':
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase4nposE'
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrm17CreateGUIControlsEv':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:52: undefined reference to `_imp__wxNullIcon'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Program Files/Dev-Cpp/include/common/wx/string.h:699: undefined reference to `_imp__wxFrameNameStr'

C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase4nposE'
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:27: undefined reference to `_imp___ZN11wxFrameBaseC2Ev'
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:27: undefined reference to `_imp___ZTV7wxFrame'
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:28: undefined reference to `_imp___ZN7wxFrame4InitEv'
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:30: undefined reference to `_imp___ZN7wxFrame6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:36: undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:30: undefined reference to `_imp___ZN11wxFrameBaseD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Program Files/Dev-Cpp/include/common/wx/string.h:699: undefined reference to `_imp__wxFrameNameStr'
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase4nposE'
C:/Program Files/Dev-Cpp/include/common/wx/string.h:368: undefined reference to `_imp___ZN12wxStringBase8InitWithEPKwjj'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:27: undefined reference to `_imp___ZN11wxFrameBaseC2Ev'
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:27: undefined reference to `_imp___ZTV7wxFrame'
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:28: undefined reference to `_imp___ZN7wxFrame4InitEv'
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:30: undefined reference to `_imp___ZN7wxFrame6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:36: undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Program Files/Dev-Cpp/include/common/wx/msw/frame.h:30: undefined reference to `_imp___ZN11wxFrameBaseD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmD2Ev':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:40: undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmD1Ev':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:40: undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZN19TestFrameProjectFrmD0Ev':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:40: undefined reference to `_imp___ZN7wxFrameD2Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `Z41__static_initialization_and_destruction_0ii':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN7wxFrame13sm_eventTableE'
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN16wxEventHashTableC1ERK12wxEventTable'
Objects/MingW/TestFrameProjectFrm.o: In function `Z41__static_initialization_and_destruction_0ii':
C:/Program Files/Dev-Cpp/include/common/wx/event.h:2271: undefined reference to `_imp__wxEVT_CLOSE_WINDOW'
C:/Program Files/Dev-Cpp/include/common/wx/event.h:2271: undefined reference to `_imp__wxEVT_NULL'
Objects/MingW/TestFrameProjectFrm.o: In function `Z41__static_initialization_and_destruction_0ii':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN16wxEventHashTableD1Ev'
Objects/MingW/TestFrameProjectFrm.o: In function `ZNK19TestFrameProjectFrm17GetEventHashTableEv':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN12wxStringBaseaSERKS_'
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp__wxEmptyString'
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN8wxObject3RefERKS_'
Objects/MingW/TestFrameProjectFrm.o: In function `ZNK19TestFrameProjectFrm13GetEventTableEv':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN12wxWindowBase10GetCaptureEv'
Objects/MingW/TestFrameProjectFrm.o: In function `ZNK19TestFrameProjectFrm17GetEventHashTableEv':

C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN12wxWindowBase25GetClassDefaultAttributesE15wxWindowVariant'
Objects/MingW/TestFrameProjectFrm.o: In function `ZNK19TestFrameProjectFrm13GetEventTableEv':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN12wxWindowBase14SetInitialSizeERK6wxSize'
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN12wxWindowBase9FindFocusEv'
Objects/MingW/TestFrameProjectFrm.o: In function `ZNK19TestFrameProjectFrm17GetEventHashTableEv':
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___Z19wxGetTopLevelParentP8wxWindow'
C:/Users/Debil-User/Documents/devCFrameProj/TestFrameProjectFrm.cpp:25: undefined reference to `_imp___ZN7wxFrame21MSWDoTranslateMessageEPS_P6tagMSG'
collect2: ld returned 1 exit status
mingw32-make.exe: *** [Output/MingW/TestFrameProject.exe] Error 1

Execution terminated
Compilation Failed. Make returned 2

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: newbie- it just doesn't link the new project

Post by tbreina » Thu Dec 22, 2011 5:37 pm

You've got the preprocessor flag "-DWXUSINGDLL" defined. It shouldn't be. We use a monolithic wxWidgets build, not a DLL.

Go to Project->Project Options->Parameters->Preprocessor Definitions and remove the WXUSINGDLL. Then do a rebuild all.

-Tony
Everybody's got something to hide except for me and my monkey.

debil
In need of some credit
In need of some credit
Posts: 3
Joined: Thu Dec 22, 2011 12:48 pm

Re: newbie- it just doesn't link the new project

Post by debil » Thu Dec 22, 2011 5:58 pm

it is not where you pointed, but in:
tools->compiler options->library type->static import library.
I've changed it because I prefered smaller code size.

thank you anyway, it solved the problem.

Post Reply