User forums > Using Code::Blocks

Upgrading to wxWidgets 3.1.3

<< < (5/9) > >>

stahta01:
This is wrong; but, not the cause of your problem.

--- Code: ---Resource compiler: (#wx.lib)\gcc_dll

--- End code ---

Note: You need to add "$(#wx.include)" to both Compiler and Resource compiler.
That might be causing the problem.

To see if using a Custom Makefile look at
Project -> Properties
Tab: Project Settings
Is "This is a custom makefile" checked?

Tim S.

stahta01:
Remove the compiler option "-include wx_pch.h" from likely the "Other Compiler Options"
Under "Project" -> "Build Options"
Tab: Compiler Settings
Subtab: "Other Compiler Options"
Remember to check both project and target level setting in left hand pane.

Tim S.

spflanze:
I did these things as you recommended:
Added the $ sign where it was missing where the global wx was used.
Removed -include wx_pch.h" in "Other Compiler Options"
Added "$(#wx.include)" to both Compiler and Resource compiler.

I verified the checkbox at: Project => Properties => Project Settings (tab) => This is a custom makefile is, and has been, unchecked.

The error I get now:

--- Code: ---[  5.3%] mingw32-g++.exe -Wall -pipe -mthreads -Winvalid-pch -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -Winline -Wall -pg -m64 -g -g3 -I..\Libraries\cminpack-1.3.6 -IC:\wxWidgets-3.1.3\lib\gcc_dll\mswud -IC:\wxWidgets-3.1.3\include -c C:\Software\Libraries\cminpack-1.3.6\cpp\dpmpar.cpp -o obj\Debug\Libraries\cminpack-1.3.6\cpp\dpmpar.o

Execution of 'mingw32-g++.exe -Wall -pipe -mthreads -Winvalid-pch -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -Winline -Wall -pg -m64 -g -g3 -I..\Libraries\cminpack-1.3.6 -IC:\wxWidgets-3.1.3\lib\gcc_dll\mswud -IC:\wxWidgets-3.1.3\include -c C:\Software\Libraries\cminpack-1.3.6\cpp\dpmpar.cpp -o obj\Debug\Libraries\cminpack-1.3.6\cpp\dpmpar.o' in 'C:\Software\Designer' failed.
--- End code ---

This is still showing "-DWX_PRECOMP" in the compile command. Should it?

stahta01:
Please figure out where "mingw32-g++.exe" is coming from?
You said the toolchain is set to use "g++.exe".

Edit: Please verify you were looking at the settings for "GNU GCC Compiler" instead of at a different compiler!

Please post the full rebuild log this time.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.

stahta01:

--- Quote from: spflanze on February 23, 2020, 12:42:07 am ---This is still showing "-DWX_PRECOMP" in the compile command. Should it?

--- End quote ---

Look at "#defines" for "WX_PRECOMP" change it to "NOPCH".
Project -> Build Options
Tab: Compiler Settigs
Subtab: #defines

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version