Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

CodeBlocks Compiling

<< < (3/3)

riban:
I confirm that the patch provided by stahta01 resolves the build issue with minGW32. I had separately discovered that removing precompiled header definitions helped.

I have found similar issue with the following plugins that may be worked-around by removing WX_PRECOMP and CB_PRECOMP from the defines

* wxSmith - Contrib Items
* AutoVersioning
* Games
* Code Snippets wx2.8.x
* SpellChecker wx2.8.xShould these plugin failures be reported separately or managed within this ticket?

FYI The installation of minGW32 on my Windows 7 Professional machine reports WINVER=0x0500 and _WIN32_WINNT=0x0500 which causes the build to fail due to various dependencies on >=0x0501. I resolved this by adding

--- Code: ---WINVER=0x0601
_WIN32_WINNT=0x0601

--- End code ---
to defines of the project. I will report this separately.

stahta01:
When I have time, I will create a separate patch for each plugin.

I suggest you report all of the problem plugins in one report on sf.net.

I will the reference your report of bug in my patch files.

edit: I am testing with these compiler defines; these defines should be added to the compiler; I consider this a mingw.org compiler bug/WAD.
WAD = works as designed. I may need to up WINVER to match your value later in testing.

--- Code: ---WINVER=0x0501
_WIN32_IE=0x0601

--- End code ---

Tim S.

stahta01:
Partial build log showing error; before I try to fix it. The build log was too long so edited it down.

--- Code: ----------------- Build: default in AutoVersioning (compiler: GNU GCC 6.3.0 mingw.org Compiler)---------------

mingw32-g++.exe -Wall -g -std=gnu++11 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DWINVER=0x0501 -D_WIN32_IE=0x0601 -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -IC:\Users\stahta01\devel\open_source_code\version_control\git_repos\wxWidgets_2_8_branch\include -IC:\Users\stahta01\devel\open_source_code\version_control\git_repos\wxWidgets_2_8_branch\lib\gcc_dll\mswu -c C:\Users\stahta01\devel\open_source_code\version_control\git_repos\codeblocks_PCH_fixes\src\plugins\contrib\AutoVersioning\AutoVersioning.cpp -o ..\..\..\.objs\plugins\contrib\AutoVersioning\AutoVersioning.o

SNIP

C:\Users\stahta01\devel\open_source_code\version_control\git_repos\wxWidgets_2_8_branch\include/wx/msw/private.h:680:28: error: ambiguous overload for 'operator=' (operand types are 'wxString' and 'const LPCSTR {aka const char* const}')
             m_clsname = wc.lpszClassName;
                            ^~~~~~~~~~~~~

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version