Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Help / Re: code blocks can't allow me to check an options....
« Last post by dema.king84 on Today at 03:59:46 pm »
i think i solved the pseudo-problem :)
cause i was try to save c++source file without the project opened!
Now that I try to do same step by step with the project active with the visibile code I can go on :)
2
Help / Re: code blocks can't allow me to check an options....
« Last post by Miguel Gimenez on Today at 03:54:25 pm »
Quote
yes and it's called main.cpp

It does not look like a project but a source file... Can you open Project -> Properties... in the menu?
3
Help / Re: code blocks can't allow me to check an options....
« Last post by dema.king84 on Today at 03:44:37 pm »
yes and it's called main.cpp
4
Help / Re: code blocks can't allow me to check an options....
« Last post by Miguel Gimenez on Today at 03:39:29 pm »
Do you have a project?
5
Help / code blocks can't allow me to check an options....
« Last post by dema.king84 on Today at 03:34:57 pm »
I'm using Code::Blocks and I can't understand why in the image attached I can't insert the check in the box "Add file to active project in build target(s)".
it is a banality surely but I can't think of any way to overcome the problem
6
Development / Re: Help with debugging codeblocks build from sources
« Last post by AndrewCot on Today at 12:31:36 pm »
Thanks gd_on. Looks like you have come across the problems I am encounting and the post will help a HUGE amount as the links make sense and appear to be related to the issues I have come accross. I created the post below before your post and was updating it based on the -Ox changes and then hit the post button and the web site coded poped up info that there was another post.

I am going to call it a night (Sydney OZ) and will pickup in the morning.

I will apply the patch and read the MSYS2 thread in the morning. Have you posted anything on the MSYS2 github issues list or a GNU bug list? Is there anything I can do to help out after applying the patch and reading the thread?


Original post below before sd_on response was seen:

I have been debugging the code and the problem is in code that has not changed in 8+ years, so I have discounted a bug in CB.

My debugging has traced the issue to src\plugins\compilergcc\depslib\src\fileent.c file on line 107:
Code
sprintf( filespec, "%s/*", dir );

When I step to this line the dir variable becomes out of scope and therefor the filespec is "undefined" as in whet ever the underlying memory is......

The failing code above was built with "-g -O2" using gcc.exe (Rev2, Built by MSYS2 project) 10.3.0.
If I build with "-g -Og" then line 107 works, but there is still an exception thrown.
If I build with "-g -O0" then I get the following error when GDB tries to run the exe:
The procedure entry point _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev could not be located in the dynamic link library F:\Andrew_Development\codeblocks_sf\src\devel31_64\codeblocks.dll.

7
Development / Re: Help with debugging codeblocks build from sources
« Last post by gd_on on Today at 11:52:56 am »
I had a similar problem described in https://forums.codeblocks.org/index.php/topic,24363.msg166172.html#msg166172 : RPT file looks very similar.
I published a patch (ticket #1086: https://sourceforge.net/p/codeblocks/tickets/1086/) which solved the problem for me, but has not been still integrated in official distribution. May be you can try it.
And if you use gcc from msys2 last version (with gcc 10.3 64 bits), you'll probably will have an other problem described in https://forums.codeblocks.org/index.php/topic,24486.0.html but I have no solutions for that, except to use an "old" compiler version, before the last update of binutils to 2.36!
8
Development / Re: Help with debugging codeblocks build from sources
« Last post by oBFusCATed on Today at 10:41:09 am »
There is a global variable cb_release_type. Set it to something like "-O0 -g"
9
Development / Re: Help with debugging codeblocks build from sources
« Last post by AndrewCot on Today at 06:18:31 am »
Worked it out  project did not have debug compiler option "-g" enabled.
10
Development / Re: Help with debugging codeblocks build from sources
« Last post by AndrewCot on Today at 06:01:13 am »
I have figured out how to debug the codeblocks.exe built from source within the nightly codeblocks exe, but I cannot get breakpoints I set in code that is in the compiler.dll plugin to break in the nightly codeblokcs.exe. Looks like more google and forum searching.

Any pointers with debugging a plugin dll?
Pages: [1] 2 3 4 5 6 ... 10