Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
You can select the compiler while you create the project. Isn't this the case for D projects?
92
Help / Re: Project - compiler changes do not cause debugger to change
« Last post by oBFusCATed on June 18, 2021, 09:16:17 am »
The compiler can reference a debugger configuration.
And when you use Debug -> Active debugger -> Target's default this would be reflected correctly.
Or you can use this menu to select the debugger config you want to use.
93
Using Code::Blocks / Re: Problem with svn 12446
« Last post by AndrewCot on June 18, 2021, 06:48:05 am »
I have been able to reproduce the crash with the source from https://github.com/obfuscated/codeblocks_sf and it is crashing in the same spot as my RPT file looks like the same as post#11's codeblocks-g.RPT. The version is reporting as svn-r12459.


 
94
Help / Project - compiler changes do not cause debugger to change
« Last post by AndrewCot on June 18, 2021, 06:35:07 am »
On my PC I have Cygwin and MSYS2 (Mingw64), which I have both working with CB. I have created a options_msys2.xml for the MSYS2 migw64 and added it to the default.conf so I do not have to keep changing as the existing MSYS2 is for mingw32. This options and conf setup works in conjunction with multiple GDD configurations for the compilers as well, which is also in the default.conf.

I can use the one project file for both compilers and change the compiler in the Build Options, but when I swap between the two the GDB is not changed. The code does not reload the debugger on a compiler change.

Is this expected?

A work around is to change the compiler in the build options, save the project, close the project and then load it again.

Is the work around good enough or should the code be changed so that when you change compilers the debugger is also changed?
95
Development / Re: Help with debugging codeblocks build from sources
« Last post by AndrewCot on June 18, 2021, 02:52:38 am »
Any updates / eta when the  fileent.c changes will be completed (ticket #1086: https://sourceforge.net/p/codeblocks/tickets/1086/).

BTW my 2c on the change is that in the \src\plugins\compilergcc\depslib\src\hash.c  file there is a __LP64__ macro used that may be a better fit if the first patch is going to be used in addition to the _WIN64 as __LP64__ is applicable for GCC and looks like it is supported on Windows (Cygwin & MSYS2) and Linux and MacOS. I personally do not have a preference for which patch is applied, but it probably needs to be done sooner so devs like I have do not fall into the hole like I did going forward.
96
Development / Re: Help with debugging codeblocks build from sources
« Last post by AndrewCot on June 18, 2021, 02:36:22 am »
I am now able to build codeblocks from source and it runs correctly now with the fileent.c changed and using "-g -Og" compile options.
97
There is a CodeBlocks\default.conf in you AppData somewhere. Any modern software doesn't store user preferences next to the installation. They are all per user.

OK. I believe some programs will ask to delete files like that during an uninstall which is ideal.

But anyway, I deleted the AppData/Roaming/CodeBlocks directory and did a reinstall and this time I did ultimately see -Wall in "Other compiler options" and when I deleted it the compile succeeded. Thanks for the assistance!

There is the minor issue that Code::Blocks only detects the GNU GCC C Compiler and Digital Mars D compiler on first startup, but when I create a D project it tries to build it with the GNU GDC D compiler.
98
Help / Re: code blocks can't allow me to check an options....
« Last post by dema.king84 on June 17, 2021, 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 :)
99
Help / Re: code blocks can't allow me to check an options....
« Last post by Miguel Gimenez on June 17, 2021, 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?
100
Help / Re: code blocks can't allow me to check an options....
« Last post by dema.king84 on June 17, 2021, 03:44:37 pm »
yes and it's called main.cpp
Pages: 1 ... 5 6 7 8 9 [10]