Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
Error getting 32 bits aplication with CB, TDM and wxWidgets
(1/1)
kurtNovoselic:
I am running Code::Blocks version Code::16.01, wxWidgets ver 3.0.4 on Windows 7 64 bits.
The compiler I use is TDM-GCC-64 ver. 5.1.0
I have to build a program for 32 bits, I check -m32 (Project build options => Compiler Settings => Compiler flags => Target X86 (32 bits)
Description of problem.
I get this log error
Build log:
--- Code: ---
||=== Build: Release in BalanceSerial (compiler: GNU GCC Compiler) ===|
D:\Proyectos\CB Projects\Balanza\BS4 Mar17\BalanceSerialApp.cpp|54|warning: 'virtual bool wxEvtHandler::TryValidator(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
...
D:\Proyectos\CB Projects\Balanza\BS4 Mar17\LCDWindow.cpp|495|warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]|
C:\wxWidgets-3.0.4\include\wx\window.h|1872|note: declared here|
ld.exe||cannot find -lwxmsw30u|
ld.exe||cannot find -lwxpng|
ld.exe||cannot find -lwxjpeg|
ld.exe||cannot find -lwxtiff|
ld.exe||cannot find -lwxzlib|
||error: ld returned 1 exit status|
||=== Build failed: 6 error(s), 353 warning(s) (0 minute(s), 18 second(s)) ===|
--- End code ---
stahta01:
Post build log
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Edit: Did you remember to build and link to an 32 bit build of wxWidgets?
kurtNovoselic:
stahta01
Maybe that is the problem, I'll try. I can't remember if I build wxWidgets for 64 bits or 32 bits
What else I have to add to the comand of the compiler?
I use this:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11
Thanks
stahta01:
--- Quote from: kurtNovoselic on January 14, 2019, 08:25:30 pm ---stahta01
Maybe that is the problem, I'll try. I can't remember if I build wxWidgets for 64 bits or 32 bits
What else I have to add to the comand of the compiler?
I use this:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11
Thanks
--- End quote ---
I was never able to build an 32 bit wxWidgets using the TDM 64 bit GCC.
Tim S.
Navigation
[0] Message Index
Go to full version