I have added the complete build log here:
||=== Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: AutoRevision in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: ConsoleRunner in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: Squirrel in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: Squirrel std lib in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: SqPlus in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: wxpropgrid in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: sdk in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: src in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: Abbreviations in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: AStyle in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: Autosave in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: Compiler depslib in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: Compiler in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||=== Build: Debugger in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggerdriver.h||In member function 'void DebuggerCommands::Remove(_wxArrayDebuggerCommands)':|
C:\wxMSW-2.8.12\wxMSW-2.8.12\include\wx\debug.h|194|warning: typedef 'wxDummyCheckInt' locally defined but not used [-Wunused-local-typedefs]|
C:\wxMSW-2.8.12\wxMSW-2.8.12\include\wx\debug.h|224|note: in expansion of macro 'wxFORCE_SEMICOLON'|
C:\wxMSW-2.8.12\wxMSW-2.8.12\include\wx\dynarray.h|353|note: in expansion of macro 'wxCHECK2_MSG'|
C:\wxMSW-2.8.12\wxMSW-2.8.12\include\wx\dynarray.h|484|note: in expansion of macro '_WX_DEFINE_TYPEARRAY_HELPER'|
C:\wxMSW-2.8.12\wxMSW-2.8.12\include\wx\dynarray.h|665|note: in expansion of macro '_WX_DEFINE_TYPEARRAY'|
C:\wxMSW-2.8.12\wxMSW-2.8.12\include\wx\dynarray.h|646|note: in expansion of macro 'WX_DEFINE_TYPEARRAY_WITH_DECL'|
C:\wxMSW-2.8.12\wxMSW-2.8.12\include\wx\dynarray.h|823|note: in expansion of macro 'WX_DEFINE_TYPEARRAY'|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggerdriver.h|29|note: in expansion of macro 'WX_DEFINE_ARRAY'|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp||In member function 'void DebuggerGDB::DoBreak(bool)':|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|1605|error: 'CreateToolhelp32SnapshotFunc' was not declared in this scope|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|1606|error: 'Process32FirstFunc' was not declared in this scope|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|1607|error: 'Process32NextFunc' was not declared in this scope|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|1609|error: 'TH32CS_SNAPALL' was not declared in this scope|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|1612|error: 'PROCESSENTRY32' was not declared in this scope|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|1613|error: 'lppe' was not declared in this scope|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|1633|error: 'DebugBreakProcessFunc' was not declared in this scope|
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp|121|warning: '{anonymous}::idMenuSettings' defined but not used [-Wunused-variable]|
||=== Build failed: 7 error(s), 2 warning(s) (1 minute(s), 46 second(s)) ===|
Yes, I have build the wxwidget both as Debug as well as release
Sorry for the silly mistake. Pls check the build log here
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: AutoRevision in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: ConsoleRunner in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: Squirrel in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: Squirrel std lib in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: SqPlus in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: wxpropgrid in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target pre-build steps
build_tools\autorevision\autorevision +wx +int +t . include/autorevision.h
'svn' is not recognized as an internal or external command,
operable program or batch file.
'git' is not recognized as an internal or external command,
operable program or batch file.
'svn' is not recognized as an internal or external command,
operable program or batch file.
-------------- Build: sdk in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
cmd /c "cd sdk\resources & zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png"
Running target pre-build steps
cmd /c if exist devel\exchndl.dll del devel\exchndl.dll
-------------- Build: src in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\resources.zip src\resources\*.xrc
zip -jq9 devel\share\CodeBlocks\start_here.zip src\resources\start_here\*.html src\resources\start_here\*.png
cmd /c "cd src\resources & zip -0 -q ..\..\devel\share\CodeBlocks\resources.zip images\*.png images\16x16\*.png"
cmd /c if not exist devel\exchndl.dll if exist exchndl\win32\bin\*.dll xcopy /Y exchndl\win32\bin\*.dll devel\
cmd /c if not exist devel\symsrv.yes if exist exchndl\win32\bin\symsrv.yes xcopy /Y exchndl\win32\bin\symsrv.yes devel\
-------------- Build: Abbreviations in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\abbreviations.zip plugins\abbreviations\resources\manifest.xml plugins\abbreviations\resources\*.xrc
-------------- Build: AStyle in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\astyle.zip plugins\astyle\resources\manifest.xml plugins\astyle\resources\*.xrc
-------------- Build: Autosave in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\autosave.zip plugins\autosave\manifest.xml plugins\autosave\*.xrc
-------------- Build: Compiler depslib in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: Compiler in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\compiler.zip plugins\compilergcc\resources\manifest.xml plugins\compilergcc\resources\*.xrc
cmd /c "cd plugins\compilergcc\resources & zip -0 -q ..\..\..\devel\share\CodeBlocks\compiler.zip images\*.png images\16x16\*.png"
cmd /c if not exist devel\share\CodeBlocks\compilers mkdir devel\share\CodeBlocks\compilers
cmd /c xcopy /D /Y plugins\compilergcc\resources\compilers\*.* devel\share\CodeBlocks\compilers
0 File(s) copied
-------------- Build: Debugger in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -Wno-deprecated-declarations -iquote.objs\include -I.objs\include -I. -IC:\wxMSW-2.8.12\wxMSW-2.8.12\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695\src\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswud -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695\src\sdk\wxscintilla\include -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695 -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695\src -c C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp -o .objs\plugins\debuggergdb\debuggergdb.o
In file included from C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/defs.h:521:0,
from C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/wxprec.h:13,
from C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\include\sdk_common.h:37,
from C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\include\sdk.h:14:
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggerdriver.h: In member function 'void DebuggerCommands::Remove(_wxArrayDebuggerCommands)':
C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/debug.h:194:43: warning: typedef 'wxDummyCheckInt' locally defined but not used [-Wunused-local-typedefs]
#define wxFORCE_SEMICOLON typedef int wxDummyCheckInt
^
C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/debug.h:224:9: note: in expansion of macro 'wxFORCE_SEMICOLON'
wxFORCE_SEMICOLON /* just to force a semicolon */
^
C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/dynarray.h:353:7: note: in expansion of macro 'wxCHECK2_MSG'
wxCHECK2_MSG( iIndex != wxNOT_FOUND, return, \
^
C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/dynarray.h:484:5: note: in expansion of macro '_WX_DEFINE_TYPEARRAY_HELPER'
_WX_DEFINE_TYPEARRAY_HELPER(T, name, base, classexp, _WX_PTROP)
^
C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/dynarray.h:665:5: note: in expansion of macro '_WX_DEFINE_TYPEARRAY'
_WX_DEFINE_TYPEARRAY(_wxArray##name, name, base, classdecl)
^
C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/dynarray.h:646:5: note: in expansion of macro 'WX_DEFINE_TYPEARRAY_WITH_DECL'
WX_DEFINE_TYPEARRAY_WITH_DECL(T, name, base, class wxARRAY_DEFAULT_EXPORT)
^
C:\wxMSW-2.8.12\wxMSW-2.8.12\include/wx/dynarray.h:823:5: note: in expansion of macro 'WX_DEFINE_TYPEARRAY'
WX_DEFINE_TYPEARRAY(T, name, wxBaseArrayPtrVoid)
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggerdriver.h:29:1: note: in expansion of macro 'WX_DEFINE_ARRAY'
WX_DEFINE_ARRAY(DebuggerCmd*, DebuggerCommands);
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp: In member function 'void DebuggerGDB::DoBreak(bool)':
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1605:17: error: 'CreateToolhelp32SnapshotFunc' was not declared in this scope
&& (CreateToolhelp32SnapshotFunc!=NULL)
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1606:17: error: 'Process32FirstFunc' was not declared in this scope
&& (Process32FirstFunc!=NULL)
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1607:17: error: 'Process32NextFunc' was not declared in this scope
&& (Process32NextFunc!=NULL) )
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1609:56: error: 'TH32CS_SNAPALL' was not declared in this scope
HANDLE snap = CreateToolhelp32SnapshotFunc(TH32CS_SNAPALL,0);
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1612:17: error: 'PROCESSENTRY32' was not declared in this scope
PROCESSENTRY32 lppe;
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1613:17: error: 'lppe' was not declared in this scope
lppe.dwSize = sizeof(PROCESSENTRY32);
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1633:18: error: 'DebugBreakProcessFunc' was not declared in this scope
if (!DebugBreakProcessFunc)
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp: At global scope:
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:121:6: warning: '{anonymous}::idMenuSettings' defined but not used [-Wunused-variable]
long idMenuSettings = wxNewId();
^
Process terminated with status 1 (1 minute(s), 46 second(s))
7 error(s), 2 warning(s) (1 minute(s), 46 second(s))
Code Snippet from debuggergdb.cpp
#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
#include "Tlhelp32.h"
typedef BOOL WINAPI (*DebugBreakProcessApiCall) (HANDLE);
typedef HANDLE WINAPI (*CreateToolhelp32SnapshotApiCall)(DWORD dwFlags, DWORD th32ProcessID);
typedef BOOL WINAPI (*Process32FirstApiCall) (HANDLE hSnapshot, LPPROCESSENTRY32W lppe);
typedef BOOL WINAPI (*Process32NextApiCall) (HANDLE hSnapshot, LPPROCESSENTRY32W lppe);
DebugBreakProcessApiCall DebugBreakProcessFunc = 0;
CreateToolhelp32SnapshotApiCall CreateToolhelp32SnapshotFunc = 0;
Process32FirstApiCall Process32FirstFunc = 0;
Process32NextApiCall Process32NextFunc = 0;
HINSTANCE kernelLib = 0;
#endif
Please verify that _WIN32_WINNT >= 0x0501 and if cross compiling "Tlhelp32.h" may need to be changed to "tlhelp32.h".
Post the full rebuild of debugger plugin if you can NOT find the error yourself.
Also post the information on your Compiler and Operating System.
Edit: You likely are running a real old Windows version or one too new for your compiler.
Tim S.
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -Wno-deprecated-declarations -iquote.objs\include -I.objs\include -I. -IC:\wxMSW-2.8.12\wxMSW-2.8.12\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695\src\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswud -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695\src\sdk\wxscintilla\include -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695 -IC:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695\codeblocks-16.01svn10695\src -c C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp -o .objs\plugins\debuggergdb\debuggergdb.o
DO NOT MIX SOURCE CODE FROM CB AND A FORK AND EXPECT IT TO WORK!
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release
C:\codeblocks-16.01-1.el7.src\codeblocks-16.01-1.el7.src\codeblocks-16.01svn10695
Tim S.
I tried to include "tlhelp32.h" also as a precautionary measure, then also error remains the same
#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
#include "Tlhelp32.h"
#include "tlhelp32.h"
typedef BOOL WINAPI (*DebugBreakProcessApiCall) (HANDLE);
typedef HANDLE WINAPI (*CreateToolhelp32SnapshotApiCall)(DWORD dwFlags, DWORD th32ProcessID);
typedef BOOL WINAPI (*Process32FirstApiCall) (HANDLE hSnapshot, LPPROCESSENTRY32W lppe);
typedef BOOL WINAPI (*Process32NextApiCall) (HANDLE hSnapshot, LPPROCESSENTRY32W lppe);
DebugBreakProcessApiCall DebugBreakProcessFunc = 0;
CreateToolhelp32SnapshotApiCall CreateToolhelp32SnapshotFunc = 0;
Process32FirstApiCall Process32FirstFunc = 0;
Process32NextApiCall Process32NextFunc = 0;
HINSTANCE kernelLib = 0;
#endif
but if I comment the ifdef and endif condition from the above code. It build up fine. Why is it so, any idea?
Build log:
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: AutoRevision in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: ConsoleRunner in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: Squirrel in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: Squirrel std lib in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: SqPlus in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: wxpropgrid in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target pre-build steps
build_tools\autorevision\autorevision +wx +int +t . include/autorevision.h
'svn' is not recognized as an internal or external command,
operable program or batch file.
'git' is not recognized as an internal or external command,
operable program or batch file.
'svn' is not recognized as an internal or external command,
operable program or batch file.
-------------- Build: sdk in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
cmd /c "cd sdk\resources & zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png"
Running target pre-build steps
cmd /c if exist devel\exchndl.dll del devel\exchndl.dll
-------------- Build: src in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\resources.zip src\resources\*.xrc
zip -jq9 devel\share\CodeBlocks\start_here.zip src\resources\start_here\*.html src\resources\start_here\*.png
cmd /c "cd src\resources & zip -0 -q ..\..\devel\share\CodeBlocks\resources.zip images\*.png images\16x16\*.png"
cmd /c if not exist devel\exchndl.dll if exist exchndl\win32\bin\*.dll xcopy /Y exchndl\win32\bin\*.dll devel\
cmd /c if not exist devel\symsrv.yes if exist exchndl\win32\bin\symsrv.yes xcopy /Y exchndl\win32\bin\symsrv.yes devel\
-------------- Build: Abbreviations in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\abbreviations.zip plugins\abbreviations\resources\manifest.xml plugins\abbreviations\resources\*.xrc
-------------- Build: AStyle in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\astyle.zip plugins\astyle\resources\manifest.xml plugins\astyle\resources\*.xrc
-------------- Build: Autosave in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\autosave.zip plugins\autosave\manifest.xml plugins\autosave\*.xrc
-------------- Build: Compiler depslib in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
-------------- Build: Compiler in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\compiler.zip plugins\compilergcc\resources\manifest.xml plugins\compilergcc\resources\*.xrc
cmd /c "cd plugins\compilergcc\resources & zip -0 -q ..\..\..\devel\share\CodeBlocks\compiler.zip images\*.png images\16x16\*.png"
cmd /c if not exist devel\share\CodeBlocks\compilers mkdir devel\share\CodeBlocks\compilers
cmd /c xcopy /D /Y plugins\compilergcc\resources\compilers\*.* devel\share\CodeBlocks\compilers
0 File(s) copied
-------------- Build: Debugger in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -Wno-deprecated-declarations -Wno-unused-local-typedefs -iquote.objs\include -I.objs\include -I. -IC:\wxMSW-2.8.12\wxMSW-2.8.12\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswud -IC:\MinGW\include -IC:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\sdk\wxscintilla\include -IC:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release -IC:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src -IC:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\include -c C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp -o .objs\plugins\debuggergdb\debuggergdb.o
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp: In member function 'void DebuggerGDB::DoBreak(bool)':
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1609:17: error: 'CreateToolhelp32SnapshotFunc' was not declared in this scope
&& (CreateToolhelp32SnapshotFunc!=NULL)
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1610:17: error: 'Process32FirstFunc' was not declared in this scope
&& (Process32FirstFunc!=NULL)
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1611:17: error: 'Process32NextFunc' was not declared in this scope
&& (Process32NextFunc!=NULL) )
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1613:56: error: 'TH32CS_SNAPALL' was not declared in this scope
HANDLE snap = CreateToolhelp32SnapshotFunc(TH32CS_SNAPALL,0);
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1616:17: error: 'PROCESSENTRY32' was not declared in this scope
PROCESSENTRY32 lppe;
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1617:17: error: 'lppe' was not declared in this scope
lppe.dwSize = sizeof(PROCESSENTRY32);
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:1637:18: error: 'DebugBreakProcessFunc' was not declared in this scope
if (!DebugBreakProcessFunc)
^
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp: At global scope:
C:\codeblocks_16.01.tar\codeblocks_16.01\codeblocks-16.01.release\src\plugins\debuggergdb\debuggergdb.cpp:123:6: warning: '{anonymous}::idMenuSettings' defined but not used [-Wunused-variable]
long idMenuSettings = wxNewId();
^
Process terminated with status 1 (0 minute(s), 20 second(s))
7 error(s), 1 warning(s) (0 minute(s), 20 second(s))
I rebuild the code but the error remains the same.
Note: Info about operating system and compiler
Windows 7 Enterprise, gcc 5.3.0
Hi Tim,
Please verify that _WIN32_WINNT >= 0x0501 and if cross compiling "Tlhelp32.h" may need to be changed to "tlhelp32.h".
Can you tell me, how to verify that "_WIN32_WINNT >= 0x0501" ?
To try to display the value; but, I normally just define it to what I want it to be.
#include <iostream>
#include <w32api.h>
#include <windef.h>
using namespace std;
int main()
{
cout << "_WIN32_WINNT := " << _WIN32_WINNT << endl;
return 0;
}
Tim S.
Sorry, I have added the build log, kindly check.
-------------- Clean: default in MenuPlugin (compiler: GNU GCC Compiler)---------------
Cleaned "MenuPlugin - default"
-------------- Build: default in MenuPlugin (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -g -Wno-deprecated-declarations -Wno-unused-local-typedefs -std=gnu++11 -IC:\zbcqcm\codeblocks_svn_code\code\src\include -IC:\zbcqcm\codeblocks_svn_code\code\src\sdk\wxscintilla\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswu -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswud -IC:\MinGW\include -IC:\zbcqcm\codeblocks_svn_code\code\src\sdk\wxscintilla\include -IC:\zbcqcm\codeblocks_svn_code\code\src\include -IC:\zbcqcm\codeblocks_svn_code\code\src\include\tinyxml -c C:\Users\zbcqcm\Documents\Codeblocks_SVN\MenuPlugin\MenuPlugin.cpp -o .objs\MenuPlugin.o
mingw32-g++.exe -shared -Wl,--dll -LC:\zbcqcm\codeblocks_svn_code\code\src\devel -LC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll -LC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll -L"C:\Program Files (x86)\CodeBlocks" .objs\MenuPlugin.o -o MenuPlugin.dll -mthreads -lcodeblocks -lwxmsw28u
Output file is MenuPlugin.dll with size 343.59 KB
Running target post-build steps
zip -j9 MenuPlugin.zip manifest.xml
zip -j9 MenuPlugin.cbplugin MenuPlugin.dll MenuPlugin.zip
updating: manifest.xml (152 bytes security) (deflated 54%)
updating: MenuPlugin.dll (152 bytes security) (deflated 70%)
updating: MenuPlugin.zip (152 bytes security) (deflated 14%)
Process terminated with status 0 (1 minute(s), 18 second(s))
0 error(s), 0 warning(s) (1 minute(s), 18 second(s))
-------------- Run: default in MenuPlugin (compiler: GNU GCC Compiler)---------------
Checking for existence: C:\Users\zbcqcm\Documents\Codeblocks_SVN\MenuPlugin\MenuPlugin.dll
Executing: "C:\zbcqcm\codeblocks_svn_code\code\src\devel\codeblocks.exe" (in C:\Users\zbcqcm\Documents\Codeblocks_SVN\MenuPlugin\.)
Process terminated with status -1 (0 minute(s), 9 second(s))
My plugin is building fine besides It is installing properly into codeblocks. Error occurs only when I try to run my plugin.
P.S I will make sure to put the build log in text instead of images, Thanks.
my plugin is present in "c:/user/documents/Menuplugin"
my codeblocks svn code is present in "c:/xyz/codeblocks_svn_code"
To install the plugin, I open codeblocks.exe, go to plugin->manage plugins->Install New and direct it to MenuPlugin.cbplugin file
At backend it copies the MenuPlugin.dll file and put it incside codeblocks_svn_code under plugin section.
Plugin question:
So do I need to copy my complete source code and put it inside plugin section in codeblocks_svn_code?
you can open your plugin and the codeblocks project file at the same time in codeblocks.
I try to do the same and got error - failed
Debugger log:
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
default
Adding source dir: C:\Users\zbcqcm\Documents\Codeblocks_SVN\try_MenuPlugin_wxSmith_Combined\
Adding source dir: C:\Users\zbcqcm\Documents\Codeblocks_SVN\try_MenuPlugin_wxSmith_Combined\
Adding file: C:\zbcqcm\codeblocks_svn_code\code\src\devel\codeblocks.exe
Changing directory to: C:/Users/zbcqcm/Documents/Codeblocks_SVN/try_MenuPlugin_wxSmith_Combined/.
Set variable: PATH=.;C:\zbcqcm\codeblocks_svn_code\code\src\devel;C:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll;C:\MinGW\bin;C:\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\doxygen\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\SEGGER\JLink_V610l;C:\GNU_Tools_ARM_Embedded\6.2_2016q4\bin;C:\arm-none-eabi-gcc-4.8.2_nl-1.19.0_bu-2.23.2-mingw32-netx.0\arm-none-eabi-gcc-4.8.2\arm-none-eabi\bin;C:\arm-none-eabi-gcc-4.8.2_nl-1.19.0_bu-2.23.2-mingw32-netx.0\arm-none-eabi-gcc-4.8.2\bin;C:\gcc-arm-none-eabi-6_2-2016q4-20161216-win32\arm-none-eabi\bin;C:\gcc-arm-none-eabi-6_2-2016q4-20161216-win32\bin;C:\SysGCC\arm-elf\bin;C:\SysGCC\arm-eabi\bin;C:\Program Files (x86)\AXSEM\AXSDB\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\TDM-GCC-32\bin;C:\Program Files (x86)\WinRAR;C:\Program Files (x86)\GNU Tools ARM Embedded\6.2 2016q4\bin;C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\bin;\\ C\CB_20161120_rev10922_win32\zip300xn-x64\zip300xn-x64;\\ C\boost\boost-jam-3.1.18-1-ntx86\boost-jam-3.1.18-1-ntx86;C:\Program Files\Git\bin;C:\cygwin64\bin;C:\codeblocks zip\zip300xn-x64\zip300xn-x64
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args C:/zbcqcm/codeblocks_svn_code/code/src/devel/codeblocks.exe
failed
One more question, something deviating from topic
- I build codeblocks sdk code and as a result 2 additional folders were formed namely "devel", "output". Each containing codeblock.exe. I need to ask, which codeblock.exe I should work on?
Hi @BlueHazzard
Thanks for the detailed explanation.
No. Simply open both projects in one workspace (by opening simply both projects). But the settings of the projects have to be ok, and i think there is your problem...
As Tim suggested you should try to build and debug a contrib plugin first.
1) For this open a contrib plugin project from /PATHTOCODEBLOCKS/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cbp .
2) Then open /PATHTOCODEBLOCKS/src/CodeBlocks.cbp .
3) Activate again the ProjectOptionsManipulator.cbp by double click int the Management pane. This project should now be marked as active (The name is bold).
4) Check if the correct "default" target is selected in the toolbar near the build button
5) In the Management panel browse to Codeblocks/Source/src/app.cpp (BUT DON'T ACTIVATE THE PROJECT) and go to line 610. Set a breakpoint there
6) Set a breakpoint of interest in the ProjectOptionsManipulator source
7) Now hit the debugger button
8) It should now halt first at src/app.cpp:610
9) Hit continue if the debugger stops until you hit the desired breakpoint
I follow the steps and it works fine.Thanks
After it, I go to ProjectOptionsManipulator.cbp and then go into it build options (right click->buildOptions) but it has no any relevant settings inside. I mean Other directories tab doesn't contain any path and same with linker and compiler settings. Even pre/post build steps tab also doesn't contain any info. Then I go into the ProjectOptionsManipulator project Properties, There also I compared the settings it was fine.
I checked into the files inside projectOptionsManipulator contrib plug, Th only additional file is makefile, which is not available in my menuplugin project.
If this works you can look into the project settings, how the project is set up and compare it wit your settings
By this, did you mean to compare the settings present in makefile?
After matching the properties, I am getting the error while debugging
My debuggerlog after matching project properties:
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
default
Adding source dir: C:\zbcqcm\codeblocks_svn_code\code\src\plugins\contrib\MenuPlugin\
Adding source dir: C:\zbcqcm\codeblocks_svn_code\code\src\plugins\contrib\MenuPlugin\
Adding file: C:\zbcqcm\codeblocks_svn_code\code\src\devel\codeblocks.exe
Changing directory to: C:/zbcqcm/codeblocks_svn_code/code/src/devel
Set variable: PATH=.;C:\zbcqcm\codeblocks_svn_code\code\src\devel;C:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll;C:\MinGW\bin;C:\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\doxygen\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\SEGGER\JLink_V610l;C:\GNU_Tools_ARM_Embedded\6.2_2016q4\bin;C:\arm-none-eabi-gcc-4.8.2_nl-1.19.0_bu-2.23.2-mingw32-netx.0\arm-none-eabi-gcc-4.8.2\arm-none-eabi\bin;C:\arm-none-eabi-gcc-4.8.2_nl-1.19.0_bu-2.23.2-mingw32-netx.0\arm-none-eabi-gcc-4.8.2\bin;C:\gcc-arm-none-eabi-6_2-2016q4-20161216-win32\arm-none-eabi\bin;C:\gcc-arm-none-eabi-6_2-2016q4-20161216-win32\bin;C:\SysGCC\arm-elf\bin;C:\SysGCC\arm-eabi\bin;C:\Program Files (x86)\AXSEM\AXSDB\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\TDM-GCC-32\bin;C:\Program Files (x86)\WinRAR;C:\Program Files (x86)\GNU Tools ARM Embedded\6.2 2016q4\bin;C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\bin;\\ C\CB_20161120_rev10922_win32\zip300xn-x64\zip300xn-x64;\\ C\boost\boost-jam-3.1.18-1-ntx86\boost-jam-3.1.18-1-ntx86;C:\Program Files\Git\bin;C:\cygwin64\bin;C:\codeblocks zip\zip300xn-x64\zip300xn-x64
[debug]Command-line: C:\TDM-GCC-32\bin\gdb32.exe -nx -fullname -quiet -args C:/zbcqcm/codeblocks_svn_code/code/src/devel/codeblocks.exe
[debug]Working dir : C:\zbcqcm\codeblocks_svn_code\code\src\devel
Starting debugger: C:\TDM-GCC-32\bin\gdb32.exe -nx -fullname -quiet -args C:/zbcqcm/codeblocks_svn_code/code/src/devel/codeblocks.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from C:/zbcqcm/codeblocks_svn_code/code/src/devel/codeblocks.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.9.1
[debug]Copyright (C) 2015 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "mingw32".
[debug]Type "show configuration" for configuration details.
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]Find the GDB manual and other documentation resources online at:
[debug]<http://www.gnu.org/software/gdb/documentation/>.
[debug]For help, type "help".
[debug]Type "apropos word" to search for commands related to "word".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.9.1
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 200
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\zbcqcm\codeblocks_svn_code\code\src\devel\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/MenuPlugin/
[debug]Source directories searched: C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/MenuPlugin;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "C:/zbcqcm/codeblocks_svn_code/code/src/src/app.cpp:610"
[debug]Breakpoint 2 at 0x402d12: file C:\zbcqcm\codeblocks_svn_code\code\src\src\app.cpp, line 610.
[debug]>>>>>>cb_gdb:
[debug]> break "C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp:181"
[debug]No source file named C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp.
[debug]Breakpoint 3 ("C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp:181") pending.
[debug]>>>>>>cb_gdb:
[debug]> break "C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp:161"
[debug]No source file named C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp.
[debug]Breakpoint 4 ("C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp:161") pending.
[debug]>>>>>>cb_gdb:
[debug]> break "C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp:85"
[debug]No source file named C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp.
[debug]Breakpoint 5 ("C:/zbcqcm/codeblocks_svn_code/code/src/plugins/contrib/ProjectOptionsManipulator/ProjectOptionsManipulator.cpp:85") pending.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:\zbcqcm\codeblocks_svn_code\code\src\devel\codeblocks.exe
Child process PID: 4488
[debug][New Thread 4488.0xfcc]
[debug]Breakpoint 2, CodeBlocksApp::OnInit (this=0x5d707f0) at C:\zbcqcm\codeblocks_svn_code\code\src\src\app.cpp:610
[debug]C:\zbcqcm\codeblocks_svn_code\code\src\src\app.cpp:610:21787:beg:0x402d12
[debug]>>>>>>cb_gdb:
At C:\zbcqcm\codeblocks_svn_code\code\src\src\app.cpp:610
Continuing...
[debug]> cont
[debug]Continuing.
[debug]Starting Code::Blocks svn build rev 0 Feb 7 2017, 17:16:55 - wx2.8.12 (Windows, unicode) - 32 bit
[debug][Inferior 1 (process 4488) exited with code 037777777777]
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 4488) exited with code 037777777777]
[debug]> quit
Debugger finished with status 0
I am not sure but probably you have to build codeblocks with debugging symbols enabled. You do this by Settings->Global Variables->cb_release_type and add "-g" in the "base" field. Then you have to rebuild Codeblocks by hitting Build->Rebuild
I did the build, using "-g" symbol inside cb_release_type.
I will check your wizard, once I understand the makefile present in projectOptionsManipulator plugin.
[/quote]
Does it mean that, on building our project on "to_codeblock" target, it will build up as well as plugin gets automatically installed in codeblocks.? If its so, I checked my plugins sections inside codeblocks IDE. Plugin-> Manage Plugins-> Look into the list.
But there was no plugin installed in the list.
I also try to debug the plugin, but the error was same.
Yes, it gets installed in the development output of Codeblocks (the subfolder devel, hopefully not the codeblocks folder with what you work).
Just to make things clear: There should be 3 folders with codeblocks.exe
1) CODEBLOCKS_INSTALLATION <-- Something like C:\Program Files\Codeblocks - This is your installation of codeblocks. If you use Codeblocks in your daily work this executable should be used
2) CODEBLOCKS_DEVEL <-- Something like C:\User\MYUSER\Documents\Programming\Codeblocks\src\codeblocks_sf\src\devel - This is the output directory if you build codeblocks. This gets overwritten every time you build codeblocks
3) CODEBLOCKS_OUTPUT <-- This folder gets created/updated if you run the update.bat script from the src folder. You can copy the content from this folder over CODEBLOCKS_INSTALLATION to update your installation
Now if you run my script and build the "to_codeblock" target the output gets copied and installed to CODEBLOCKS_DEVEL. Now if you want to run your plugin you have to run CODEBLOCKS_DEVEL\codeblocks.exe.
I made a mistake in the script: the run parameter for codeblocks are missing. For the target to_codeblocks you should add
--debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug
To Project->Set programs argument->Program arguments You have to select the correct target from the list.
i have attached a updated version of the script
[debug]> cont
[debug]Continuing.
[debug]Starting Code::Blocks svn build rev 0 Feb 7 2017, 17:16:55 - wx2.8.12 (Windows, unicode) - 32 bit
[debug][Inferior 1 (process 4488) exited with code 037777777777]
[debug]>>>>>>cb_gdb:
Your application still crashes and at the moment i have no idea how i can help you with this...
[EDIT:] Can you post the code of your plugin?