User forums > Using Code::Blocks
Upgrading to wxWidgets 3.1.3
stahta01:
Toolchain settings
--- Quote ---Linker for dynamic libs: gcc.exe
--- End quote ---
The above setting is only valid for C programming!
Use below for C++ programming
--- Code: ---Linker for dynamic libs: g++.exe
--- End code ---
stahta01:
--- Quote from: stahta01 on February 23, 2020, 01:48:59 am ---
--- 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
--- End quote ---
You should also add "WXUSINGDLL" to the list of defines since you are using wxWidgets shared/DLL library.
Please attach your cbp file; so, I can look for weird problems.
Tim S.
stahta01:
Does the file "C:\Software\Libraries\cminpack-1.3.6\cpp\dpmpar.cpp" really exist?
Tim S.
spflanze:
In "Global compiler settings" the compiler is set for "TDM-GCC-64". Is that the wrong one? I attempted change it to "GNU GCC Compiler". But I find that after I close "Global compiler settings" by clicking on "OK", and then reopen it, that it has, all on its own, reverted to "TDM-GCC-64". However "GNU GCC Compiler" does show as the compiler in "Project => Build options..."
I changed the linker to g++.exe
The ""C:\Software\Libraries\cminpack-1.3.6\cpp\dpmpar.cpp" is a simplified a bit one for posting here. But that file does exist in the search path set for it.
I added "WXUSINGDLL"
The current build log:
--- Code: ----------------- Build: Debug in TIA Designer (compiler: GNU GCC Compiler)---------------
[ 5.3%] mingw32-g++.exe -Wall -pipe -mthreads -Winvalid-pch -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -DWXUSINGDLL -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:\Engineering_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__ -DWXUSINGDLL -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:\Engineering_Software\Libraries\cminpack-1.3.6\cpp\dpmpar.cpp -o obj\Debug\Libraries\cminpack-1.3.6\cpp\dpmpar.o' in 'C:\Engineering_Software\TIA Designer' failed.
--- End code ---
This time I did not simplify the paths.
The cpb file is attached.
stahta01:
You need to change the CB Project to use the Compiler "TDM-GCC-64".
Edit: Or you could edit Global setting of the Compiler your project is using.
Project -> Build Options
Make sure the project is selected in left hand pane!
Change the selected compiler to "TDM-GCC-64".
Do a re-build and post the new build log.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version