User forums > Using Code::Blocks

ClangD causing cc1plus.exe error pop up dialog on Windows

<< < (3/3)

Wkerry:
More info:

If I change the "GNU GCC Compiler" installation directory from C:\msys64\mingw32 to C:\msys64\mingw64 the error goes away.
I have the "GNU GCC MSYS MinGW64 Compiler" compiler setup as default.

The CC_ProxyProject.cbp has the <Option compiler="gcc" /> which when I load it and look at which compiler it is using it is the "GNU GCC Compiler" compiler. It looks like "GNU GCC Compiler" has at some stage has detected the compiler in the C:\msys64\mingw32 directory.

I did configure MSYS2 for both 32 and 64 bit originally as I had to support some 32 bit XP apps, but I have not used the 32 bit tool-chain for a few years.

Pecan:

--- Quote from: stahta01 on April 24, 2025, 07:04:39 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.

--- End quote ---

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)?

stahta01:

--- Quote from: Pecan on April 27, 2025, 08:04:02 pm ---
--- Quote from: stahta01 on April 24, 2025, 07:04:39 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.

--- End quote ---

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)?

--- End quote ---

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
--- End code ---

Tim S.

Pecan:

--- Quote from: stahta01 on April 27, 2025, 10:43:09 pm ---
--- Quote from: Pecan on April 27, 2025, 08:04:02 pm ---
--- Quote from: stahta01 on April 24, 2025, 07:04:39 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.

--- End quote ---

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)?

--- End quote ---

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
--- End code ---

Tim S.

--- End quote ---

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.

stahta01:

--- Quote from: Pecan on May 03, 2025, 05:32:56 pm ---
--- Quote from: stahta01 on April 27, 2025, 10:43:09 pm ---
--- Quote from: Pecan on April 27, 2025, 08:04:02 pm ---
--- Quote from: stahta01 on April 24, 2025, 07:04:39 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.

--- End quote ---

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)?

--- End quote ---

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
--- End code ---

Tim S.

--- End quote ---

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.

--- End quote ---

okay

Navigation

[0] Message Index

[*] Previous page

Go to full version