Author Topic: Error getting 32 bits aplication with CB, TDM and wxWidgets  (Read 7219 times)

Offline kurtNovoselic

  • Single posting newcomer
  • *
  • Posts: 2
Error getting 32 bits aplication with CB, TDM and wxWidgets
« on: January 14, 2019, 06:10:22 pm »
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)) ===|




« Last Edit: January 14, 2019, 08:21:27 pm by kurtNovoselic »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Error getting 32 bits aplication with CB, TDM and wxWidgets
« Reply #1 on: January 14, 2019, 06:17:29 pm »
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?
« Last Edit: January 14, 2019, 06:19:26 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kurtNovoselic

  • Single posting newcomer
  • *
  • Posts: 2
Re: Error getting 32 bits aplication with CB, TDM and wxWidgets
« Reply #2 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Error getting 32 bits aplication with CB, TDM and wxWidgets
« Reply #3 on: January 14, 2019, 10:21:08 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org