Linking problem under wxDev 6.10 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
LorDBulA
Experienced Solver
Experienced Solver
Posts: 53
Joined: Tue Feb 14, 2006 9:20 pm

Linking problem under wxDev 6.10

Post by LorDBulA »

Hello.

I have aplication that compiled fine under wxDev 4.9.x (dont remember wxWidget version).
It was quite some time ago. Now I have to extend this application so I tryed to compile it under 6.10 but I get linking errors:

Code: Select all

Compiler: Default GCC compiler
Building Makefile: "C:\RecruitmentViewer\RecruitmentViewer\Makefile.win"
Executing  make...
mingw32-make.exe -f "C:\RecruitmentViewer\RecruitmentViewer\Makefile.win" all 
g++.exe "Default Profile/recruitmentviewerFrm.o" "Default Profile/recruitmentviewerApp.o" "Default Profile/data.o" "Default Profile/connection.o" "Default Profile/myScrolledWindow.o" "Default Profile/ColorLegent.o" "Default Profile/Propagation.o" "Default Profile/log.o" "Default Profile/unitData.o" "Default Profile/factionData.o" "Default Profile/provinceData.o" "Default Profile/ProvinceDataDlg.o" "Default Profile/Global.o" "Default Profile/About.o" -o "Default Profile\recruitmentviewer.exe" -L"C:/Dev-Cpp/lib" -lmySQL -L"F:/!Program Files/MySQL/MySQL Server 5.0/lib/opt" -lmysql -mwindows -lwxmsw27_gl -lwxmsw27 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32  

Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.rdata$_ZTV20recruitmentviewerFrm[vtable for recruitmentviewerFrm]+0x7c): undefined reference to `wxTopLevelWindowBase::DoSetSizeHints(int, int, int, int, int, int)'
Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.rdata$_ZTV20recruitmentviewerFrm[vtable for recruitmentviewerFrm]+0x84): undefined reference to `wxTopLevelWindowBase::SetMinSize(wxSize const&)'
Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.rdata$_ZTV20recruitmentviewerFrm[vtable for recruitmentviewerFrm]+0x88): undefined reference to `wxTopLevelWindowBase::SetMaxSize(wxSize const&)'
Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.rdata$_ZTV20recruitmentviewerFrm[vtable for recruitmentviewerFrm]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.rdata$_ZTV15wxStaticBoxBase[vtable for wxStaticBoxBase]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.rdata$_ZTV12wxButtonBase[vtable for wxButtonBase]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.rdata$_ZTV14wxCheckBoxBase[vtable for wxCheckBoxBase]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/recruitmentviewerFrm.o:recruitmentviewerFrm.cpp:(.text$_ZN12wxWindowBase18SetInitialBestSizeERK6wxSize[wxWindowBase::SetInitialBestSize(wxSize const&)]+0x5): undefined reference to `wxWindowBase::SetInitialSize(wxSize const&)'
Default Profile/myScrolledWindow.o:myScrolledWindow.cpp:(.rdata$_ZTV16myScrolledWindow[vtable for myScrolledWindow]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/ColorLegent.o:ColorLegent.cpp:(.text+0x8ff): undefined reference to `wxBufferedDC::UseBuffer(int, int)'
Default Profile/ColorLegent.o:ColorLegent.cpp:(.rdata$_ZTV11ColorLegent[vtable for ColorLegent]+0x7c): undefined reference to `wxTopLevelWindowBase::DoSetSizeHints(int, int, int, int, int, int)'
Default Profile/ColorLegent.o:ColorLegent.cpp:(.rdata$_ZTV11ColorLegent[vtable for ColorLegent]+0x84): undefined reference to `wxTopLevelWindowBase::SetMinSize(wxSize const&)'
Default Profile/ColorLegent.o:ColorLegent.cpp:(.rdata$_ZTV11ColorLegent[vtable for ColorLegent]+0x88): undefined reference to `wxTopLevelWindowBase::SetMaxSize(wxSize const&)'
Default Profile/ColorLegent.o:ColorLegent.cpp:(.rdata$_ZTV11ColorLegent[vtable for ColorLegent]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/ColorLegent.o:ColorLegent.cpp:(.rdata$_ZTV16wxStaticTextBase[vtable for wxStaticTextBase]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/Propagation.o:Propagation.cpp:(.rdata$_ZTV11Propagation[vtable for Propagation]+0x7c): undefined reference to `wxTopLevelWindowBase::DoSetSizeHints(int, int, int, int, int, int)'
Default Profile/Propagation.o:Propagation.cpp:(.rdata$_ZTV11Propagation[vtable for Propagation]+0x84): undefined reference to `wxTopLevelWindowBase::SetMinSize(wxSize const&)'
Default Profile/Propagation.o:Propagation.cpp:(.rdata$_ZTV11Propagation[vtable for Propagation]+0x88): undefined reference to `wxTopLevelWindowBase::SetMaxSize(wxSize const&)'
Default Profile/Propagation.o:Propagation.cpp:(.rdata$_ZTV11Propagation[vtable for Propagation]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/ProvinceDataDlg.o:ProvinceDataDlg.cpp:(.rdata$_ZTV15ProvinceDataDlg[vtable for ProvinceDataDlg]+0x7c): undefined reference to `wxTopLevelWindowBase::DoSetSizeHints(int, int, int, int, int, int)'
Default Profile/ProvinceDataDlg.o:ProvinceDataDlg.cpp:(.rdata$_ZTV15ProvinceDataDlg[vtable for ProvinceDataDlg]+0x84): undefined reference to `wxTopLevelWindowBase::SetMinSize(wxSize const&)'
Default Profile/ProvinceDataDlg.o:ProvinceDataDlg.cpp:(.rdata$_ZTV15ProvinceDataDlg[vtable for ProvinceDataDlg]+0x88): undefined reference to `wxTopLevelWindowBase::SetMaxSize(wxSize const&)'
Default Profile/ProvinceDataDlg.o:ProvinceDataDlg.cpp:(.rdata$_ZTV15ProvinceDataDlg[vtable for ProvinceDataDlg]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/About.o:About.cpp:(.rdata$_ZTV5About[vtable for About]+0x7c): undefined reference to `wxTopLevelWindowBase::DoSetSizeHints(int, int, int, int, int, int)'
Default Profile/About.o:About.cpp:(.rdata$_ZTV5About[vtable for About]+0x84): undefined reference to `wxTopLevelWindowBase::SetMinSize(wxSize const&)'
Default Profile/About.o:About.cpp:(.rdata$_ZTV5About[vtable for About]+0x88): undefined reference to `wxTopLevelWindowBase::SetMaxSize(wxSize const&)'
Default Profile/About.o:About.cpp:(.rdata$_ZTV5About[vtable for About]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
Default Profile/About.o:About.cpp:(.rdata$_ZTV13wxPanelBitmap[vtable for wxPanelBitmap]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [Default Profile/recruitmentviewer.exe] Error 1

Execution terminated

Any pointers how to fix it?
lowjoel
Part Of The Furniture
Part Of The Furniture
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel »

If it is your first time compiling it then you should REBUILD ALL of your project, and of all other dependant sub-projects (if any)

Joel
LorDBulA
Experienced Solver
Experienced Solver
Posts: 53
Joined: Tue Feb 14, 2006 9:20 pm

Post by LorDBulA »

Yes I have rebulded project.
tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Post by tbreina »

-lwxmsw27_gl -lwxmsw27
The 6.10.2 version has the wxWidgets 2.8.2 libs. If you are using the latest version of everything, then you'll need to change these to the 2.8 library names:

Code: Select all

-lwxmsw28_gl -lwxmsw28
Then Rebuild All.

-Tony
Everybody's got something to hide except for me and my monkey.
LorDBulA
Experienced Solver
Experienced Solver
Posts: 53
Joined: Tue Feb 14, 2006 9:20 pm

Post by LorDBulA »

Ok i feel realy stupid now. Thanks Tony.
Post Reply