Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
CodeBlocks Compiling
riban:
I get this issue if I try to build codeblocks from within codeblocks 17.12 on Windows 7 64-bit using minGW32 gcc.
mingw32-gcc (MinGW.org GCC-6.3.0-1) 6.3.0
wxWidgets 2.8.12 built with:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 UNICODE=1 MONOLITHIC=1
stahta01:
--- Quote from: stahta01 on November 27, 2017, 03:18:46 pm ---Note: Most MinGW64 GCC compilers have issues building monolithic wxWidgets (except for TDM builds) needed by the Code::Blocks projects under windows OS.
--- End quote ---
I will try building monolithic wxWidgets using GCC (MinGW.org GCC-6.3.0-1) 6.3.0; but, that is a very new compiler to build wxWidgets 2.8.12.
I will be using the newest wxWidgets 2.8.12 in version control. Edit3: It built with MinGW.org GCC-6.3.0-1; found the DLLs forgot I canceled the first build.
It will be a while (as in a few days); and, the end answer will be it is likely an wxWidgets issue.
Tim S.
stahta01:
Post the Code::Blocks source version!
Post a partial build log http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Tim S.
stahta01:
Find a possible cause in the Code::Blocks source code.
Edit: The patch below is only a possible work around it is *not* a proper fix.
--- Code: ---diff --git a/src/plugins/codecompletion/selectincludefile.cpp b/src/plugins/codecompletion/selectincludefile.cpp
index a2f62fbef..10adfac3d 100644
--- a/src/plugins/codecompletion/selectincludefile.cpp
+++ b/src/plugins/codecompletion/selectincludefile.cpp
@@ -7,7 +7,7 @@
* $HeadURL$
*/
-#include "prep.h"
+#include <sdk.h>
#include "selectincludefile.h"
#include <wx/xrc/xmlres.h>
--- End code ---
I changed several things at the same time; so, the patch may not be the solution.
Tim S.
stahta01:
Link to PCH patch that should fix your issues building with mingw.org 6.3.0 and wxWidgets 2.8.12
https://sourceforge.net/p/codeblocks/tickets/601/
Edit: https://sourceforge.net/p/codeblocks/tickets/604/
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version