News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Error getting 32 bits aplication with CB, TDM and wxWidgets

Started by kurtNovoselic, January 14, 2019, 06:10:22 PM

Previous topic - Next topic

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:


||=== 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)) ===|






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?
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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

I was never able to build an 32 bit wxWidgets using the TDM 64 bit GCC.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]