Author Topic: How debug Code::Block?  (Read 22977 times)

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
How debug Code::Block?
« on: August 07, 2014, 03:01:40 pm »
How compile Code::Block under Code::Block with debugging? Fresh source I first must get from SVN? Is any instruction step by step how do it?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How debug Code::Block?
« Reply #1 on: August 07, 2014, 03:39:59 pm »
Please read this: Developer documentation - CodeBlocks
Especially this: Windows
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How debug Code::Block?
« Reply #2 on: August 07, 2014, 04:34:41 pm »
I try compile according to http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows. Compilation
Code
c:\wxMSW-2.8.12\build\msw>mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
fails with
Code
mingw32-make: *** [gcc_mswudll\monodll_dummy.o] Error 255
Next I try compile d:\svnproj\codeblock\src\CodeBlocks.cbp
is error:
Code
||=== Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
||unrecognized command line option "-iquote.objs\include"|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How debug Code::Block?
« Reply #3 on: August 07, 2014, 04:49:49 pm »
Typical information needed.

OS Name?
Compiler name and version?

Edit: Link to WxWindowsQuickRef http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef#Build_wxWidgets

Tim S.
« Last Edit: August 07, 2014, 04:52:27 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How debug Code::Block?
« Reply #4 on: August 07, 2014, 07:53:36 pm »
Windows 8.1
Coe:Blocks cvn 9790
gcc (GCC) 3.4.2 (mingw-special)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How debug Code::Block?
« Reply #5 on: August 07, 2014, 08:11:42 pm »
Windows 8.1
Coe:Blocks cvn 9790
gcc (GCC) 3.4.2 (mingw-special)


It is very unlikely that version of MinGW GCC will work under Windows 8.1.

Till "gcc version 3.4.5 (mingw-vista special r3)" it has issues working under Windows Vista/7.

Tim S.
« Last Edit: August 07, 2014, 08:14:48 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org