Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: jose on September 16, 2014, 04:11:07 pm

Title: error on linking codeblocks.exe
Post by: jose on September 16, 2014, 04:11:07 pm
hello good day

in an attempt to compile the  codeblocks source code, after successfully compiled wxMSW-2.8.12 and compiled  codeblocks10.5 source code successfully, i get 8  error messages from the linker:  "variable 'vtable for wxScrollingDialog' can not be self -imported ".
I checked that  WXUSINGDLL is defined  in compiler settings #defines.
can someone help out? grateful already ???
Title: Re: error on linking codeblocks.exe
Post by: ollydbg on September 16, 2014, 04:29:51 pm
I suggest building C::B trunk. 10.05 is too old.  :)
Any way, if you have build errors, please show us the full logs. (also, tell us which compiler you use).
Title: Re: error on linking codeblocks.exe
Post by: jose on September 16, 2014, 04:51:57 pm
grateful for the attention.
gcc compiler with mingw32


before this point without problems
...
Compiling: sdk\xtra_res.cpp
Linking dynamic library: devel\codeblocks.dll
Creating library file: devel\libcodeblocks.dll.a
Output size is 22.71 MB

-------------- Build: src in Code::Blocks ---------------

Precompiling header: include\sdk.h
Compiling: src\app.cpp
Compiling: src\appglobals.cpp
Compiling: src\associations.cpp
Compiling: src\compilersettingsdlg.cpp
Compiling: src\crashhandler.cpp
Compiling: src\dlgabout.cpp
Compiling: src\dlgaboutplugin.cpp
Compiling: src\environmentsettingsdlg.cpp
Compiling: src\infopane.cpp
Compiling: src\main.cpp
Compiling: src\notebookstyles.cpp
Compiling: src\printdlg.cpp
Compiling: src\resources\resources.rc
Compiling: src\scriptconsole.cpp
Compiling: src\scriptingsettingsdlg.cpp
Compiling: src\splashscreen.cpp
Compiling: src\startherepage.cpp
Compiling: src\switcherdlg.cpp
Linking executable: devel\codeblocks.exe
.objs\src\app.o(.text$_ZN17wxScrollingDialogD2Ev[wxScrollingDialog::~wxScrollingDialog()]+0x3a): In function `ZN31_GLOBAL__N__Z15GetResourcesDirv9DDEServer18OnAcceptConnectionERK8wxString':
C:/MinGW/codeblocks-10.05-release/src/src/app.cpp:103: variable 'vtable for wxScrollingDialog' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\app.o(.text$_ZN17wxScrollingDialogD2Ev[wxScrollingDialog::~wxScrollingDialog()]+0x48):C:/MinGW/codeblocks-10.05-release/src/src/app.cpp:103: variable 'vtable for wxScrollingDialog' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\associations.o(.text$_ZN17wxScrollingDialogC2Ev[wxScrollingDialog::wxScrollingDialog()]+0x6b): In function `ZN12Associations17SetBatchBuildOnlyEv':
C:/MinGW/codeblocks-10.05-release/src/src/associations.cpp:83: variable 'vtable for wxScrollingDialog' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\associations.o(.text$_ZN17wxScrollingDialogC2Ev[wxScrollingDialog::wxScrollingDialog()]+0x79):C:/MinGW/codeblocks-10.05-release/src/src/associations.cpp:84: variable 'vtable for wxScrollingDialog' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\main.o(.text$_ZN17wxScrollingDialogC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_[wxScrollingDialog::wxScrollingDialog(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)]+0x6b): In function `ZN9MainFrameC2EP8wxWindow':
C:/MinGW/codeblocks-10.05-release/src/src/main.cpp:480: variable 'vtable for wxScrollingDialog' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\main.o(.text$_ZN17wxScrollingDialogC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_[wxScrollingDialog::wxScrollingDialog(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)]+0x79):C:/MinGW/codeblocks-10.05-release/src/src/main.cpp:480: variable 'vtable for wxScrollingDialog' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\app.o(.text$_ZN14wxDialogHelperD2Ev[wxDialogHelper::~wxDialogHelper()]+0xb): In function `ZNKSt6vectorIPN14BlockAllocatorI19CodeBlocksDockEventLj75ELb0EE11LinkedBlockIS1_EESaIS5_EE5beginEv':
C:/MinGW/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_iterator.h: variable 'vtable for wxDialogHelper' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\associations.o(.text$_ZN14wxDialogHelperC2EP8wxDialog[wxDialogHelper::wxDialogHelper(wxDialog*)]+0x3a): In function `ZN12Associations17SetBatchBuildOnlyEv':
C:/MinGW/codeblocks-10.05-release/src/src/associations.cpp:82: variable 'vtable for wxDialogHelper' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\src\infopane.o(.text$_ZN13cbAuiNotebookD2Ev[cbAuiNotebook::~cbAuiNotebook()]+0x3a): In function `ZN8InfoPaneC2EP8wxWindow':
C:/MinGW/codeblocks-10.05-release/src/src/infopane.cpp:45: variable 'vtable for cbAuiNotebook' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
Process terminated with status 1 (9 minutes, 56 seconds)
8 errors, 9 warnings
 
Title: Re: error on linking codeblocks.exe
Post by: ollydbg on September 19, 2014, 04:31:27 am
Hi, jose, I can't say much about the compiler error, but from your log message, you are still using a very old GCC (3.x version), can you try a newer version like gcc 4.7 or even newer? (note: Both the wx and C::B should be build with the same GCC compiler).
Title: Re: error on linking codeblocks.exe
Post by: jose on September 19, 2014, 03:43:13 pm
thanks for the advice, I installed TDM-Mingw32 and now everything works fine.
Is there any tutorial for those unfamiliar with  CodeBlocks interface, or   just the source code?

problem solved thanks
Title: Re: error on linking codeblocks.exe
Post by: ollydbg on September 21, 2014, 09:45:42 am
thanks for the advice, I installed TDM-Mingw32 and now everything works fine.
:)
Quote
Is there any tutorial for those unfamiliar with  CodeBlocks interface, or   just the source code?
Maybe, the Wiki (http://wiki.codeblocks.org/), and especially the document for developers. Otherwise, just ask here.