Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Help / Re: The tabs close when you save a file.
« Last post by dthu on Today at 05:24:19 am »
I traced the behavior of C:B but I got lost, I'll try again later.

Code
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="ajedrez4" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/ajedrez4" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Option use_console_runner="0" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/ajedrez4" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-pedantic" />
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-std=c++23" />
<Add option="`wx-config --cflags`" />
<Add option="-Werror" />
</Compiler>
<Linker>
<Add option="`wx-config --libs`" />
<Add library="wx_gtk3u_richtext-3.3" />
</Linker>
<UnitsGlob directory="../../../../../4chess-viewer/src" wildcard="" recursive="0" id="2701167546" addToProject="1">
<Option target="Debug" />
<Option target="Release" />
</UnitsGlob>
<Unit filename="../../../../../4chess-viewer/src/CBJugador.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/CBPagina.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/CBTurn.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessBoard.cpp">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessBoard.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessBook.cpp">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessBook.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessFiles.cpp">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessFiles.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessFrame.cpp">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessFrame.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessNotation.cpp">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessNotation.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessParameters.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ChessStyleBoard.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/Common.h">
<Option glob="2701167546" />
</Unit>
<Unit filename="../../../../../4chess-viewer/src/ajedrez4App.cpp">
<Option glob="2701167546" />
</Unit>
<Extensions>
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
2
Help / Re: The tabs close when you save a file.
« Last post by christo on Today at 05:17:13 am »
Is it possible to share your .cbp file also?
3
Help / Re: The tabs close when you save a file.
« Last post by dthu on Today at 04:36:58 am »
After deleting the file, the problem persists. An identical file was generated.
4
Help / Re: The tabs close when you save a file.
« Last post by Miguel Gimenez on Yesterday at 11:05:37 am »
Delete the .layout file, it will be recreated.
5
Help / The tabs close when you save a file.
« Last post by dthu on August 09, 2026, 08:34:46 pm »
I had a project started with the source code located in its default position. I decided to move the code. In C::B, I removed all the files and then added them to their new location. I don't know if it's related, but since then, the program closes the tabs associated with the project files every time I save or compile. I realized that the .layout file is different from other projects, so I'm placing it here.

I've experienced this problem in both the stable version and r13923 on Linux.

Code
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="Debug" />
</CodeBlocks_layout_file>
6
I will fix the png next week, currently I do not have access to the repository.
7
Help / Re: Code::Blocks always add #ifndef HEADER_ on some .h files
« Last post by MortenMacFly on August 08, 2026, 06:34:11 pm »
It seems you have installed / activated a plugin called "Header Guard" (headerguard.dll).
De-activate or un-install this plugin if you don't need it and this will be gone.
8
Even without actually compiling cb with llvm/clang you can benefit A LOT from its toolbox to find errors and dubious code.

1) Use the clangd_client cb-plugin. I only activate it temporarily, look at its findings and deactivate it afterwards due to its early stage.
2) Use clang-tidy as a "compiler" on any c++ project from within cb. Like with compiler warnings, clicking onto one jumps to the corresponding code line. This one I use very often.  I started using it with cb over 10 years ago.
3) Use scan-build from the commandline when building cb or any other project that compiles makefiles (e.g. via cmake). Gives a nice report.

Apart from llvm/clang I still recommend the cb-plugin for cppcheck.

The tools do have false positives. You can configure .clang-tidy. I disabled some warnings but in general I like to keep warnings on. At spots with false positives you can apply local suppressions (NOLINT, NOLINTNEXTLINE, cppcheck-suppress etc.). When using one of the tools for the first time on a larger codebase you might be flooded with warnings. Don't dispair. One strategy to attack the list systematically is to disable all but one type of warning. Fix those and proceed with the next type of warning. This might also happen after an update of one of the tools. A week ago, llvm forked clang-23 and started to provide packages for clang-24. The latter added a new check for [misc-const-correctness]. I like it.


9
Looks like Morten is working on building C::B for clang/arm. Recent svn changs shows many fixes the warnings.
10
I also see this kind of message in my console windows in my own built application, which is built against the wx library from msys2/mingw64 platform. I see the wx version is:

https://packages.msys2.org/base/mingw-w64-wxwidgets3.2
Pages: [1] 2 3 4 5 6 ... 10