Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 9 10
41
Plugins development / Re: CB 25.02 included binaries do not support mingw clangd
« Last post by gd_on on May 03, 2025, 05:36:31 pm »
What about the msys2 package : mingw-w64-x86_64-clang-tools-extra in which clangd is included inside msys64\mingw64\bin folder ? For me, msys64\clang64 contains only empty folders.
I don't see many problems with this package (but I can have missed them). Could you tell us more precisely some of those "spurious errors".
42
Using Code::Blocks / Re: ClangD causing cc1plus.exe error pop up dialog on Windows
« Last post by Pecan on May 03, 2025, 05:32:56 pm »
[Edit: A more important related bug is it fails to find the clangd.exe in the MINGW installation folder of an CB installed with Mingw compiler.

How did clangd.exe get installed with MINGW?
None of my Mingw folders contains clang.exe along with any of it's resources.

Do you mean the ...\msys64_18.1.8\mingw64\ folder? (or similar versions)?

On Windows using the CB25.03 installer with MINGW GCC compiler it also has the clangd.exe and other clang stuff installed.
The auto detection does not find it.

Edit:
Code
$(CodeBlocks)\MinGW\bin\clangd.exe

Tim S.

The installer does not install a clangd.exe that supports Mingw.
The clangd included in those binaries is for the clang compiler only.
Using the clangd.exe included in those binaries with Mingw will cause spurious (incorrect) error messages.

If you're using Mingw, use the Msys2 Mingw64/bin/clangd.exe instead.

Do not mix the clang compiler clangd with the Mingw clangd.
43
Plugins development / CB 25.02 included binaries do not support mingw clangd
« Last post by Pecan on May 02, 2025, 08:06:24 pm »
The 25.03 MinGW binaries cannot be used as the clangd.exe target for Clangd_client plugin.

The WinLib MinGW clang resouces (lib/clang/19) are for use of the clang compiler only and not for projects buit with mingw (g++).

That's why msys2 separates mingw64 and clang64 into separate folders, so that each can have it's own bin and lib resources.

With the current WinLib distribution binaries, our clangd_client should not be specified to use the MinGW directory distributed with 25.03. It will cause all sort of spurious errors.
44
Help / Wxwidgets error opening existing project in 25.03
« Last post by kryptogenic on May 02, 2025, 07:26:52 pm »
I just installed 25.03 today and when I go to open an existing project i'm getting this error every time: A debugging check in this app has failed. I've attached a screenshot in pdf format as well.
45
Plugins development / Code format support in clangd_client plugin
« Last post by christo on May 02, 2025, 07:04:53 pm »
Many of the projects now a days use clang-format for formatting code. clangd has support for clang-format as well using textDocument/rangeFormatting  LSP request. Attaching patch which adds a  context menu item " Format use Clangd" and does the formatting on selecting that.
46
Help / Re: CMakeLists.txt and Code::Blocks
« Last post by stahta01 on May 02, 2025, 03:42:30 pm »
I use the first option "Use default native compilers", so nothing to fill manually and almost everything is correctly set.
For cross compiling, I suppose you have to set manually a few things, but sorry, as I don't do that, I can't help you more.
Better have a look on a cmake forum if it exists.
47
Help / Re: CMakeLists.txt and Code::Blocks
« Last post by gtafan on May 02, 2025, 03:28:58 pm »
48
Help / Re: CMakeLists.txt and Code::Blocks
« Last post by gtafan on May 02, 2025, 03:27:45 pm »

Why are you trying to use CMake? C::B can create its' own project files. Do you have C::B installed yet? I noticed that you just downloaded it.

Regards.
Have you read my first post? Defently don't want go generate cmake from C::B. Have an existing project using cmake, but would like to compile it with C::B. As you can read in some other my post, using nosetup version of C::B.
49
Help / Re: CMakeLists.txt and Code::Blocks
« Last post by stahta01 on May 02, 2025, 03:26:34 pm »
50
Help / Re: CMakeLists.txt and Code::Blocks
« Last post by gtafan on May 02, 2025, 03:23:49 pm »
After specifiing the compilers still got this error:

Quote
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
Configuring incomplete, errors occurred!

Without specifiing compilers there are some more errors.

Pages: 1 2 3 4 [5] 6 7 8 9 10