User forums > Using Code::Blocks

ClangD causing cc1plus.exe error pop up dialog on Windows

(1/3) > >>

Wkerry:
Finally got some time to look into the pop up error below that I ported in March and found that if I disable the clangd plugin the error does to occur, but I cannot get the

---------------------------
cc1plus.exe - System Error
---------------------------
The code execution cannot proceed because libmpc-3.dll was not found. Reinstalling the program may fix this problem.
---------------------------
OK   
---------------------------

I have the clangd exe configured as:
C:\msys64\mingw64\bin\clangd.exe

The following command
C:\msys64\clang64\bin>C:\msys64\mingw64\bin\clangd.exe --version
clangd version 20.1.2
Features: windows
Platform: x86_64-w64-windows-gnu

I have the compiler default set to GNU GCC MSYS MingW64 with the install directory set to C:\msys64\mingw64

I get the following gcc version:
C:\msys64\mingw64\bin\gcc.exe --version
gcc.exe (Rev3, Built by MSYS2 project) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


There is nothing logged in the debug log even after adding the following parameters when I start C::B from the C:\Program Files\CodeBlocks directory
codeblocks.exe /d /v

I am using C::B 2025.3 64 bit without the Winlib compiler

Any ideas where to look or what to check or what to change to get rid of the error dialog?

stahta01:
I would try installing the dll that it claims to be missing.


--- Code: ---pacman -S mingw-w64-x86_64-mpc
--- End code ---

stahta01:
PLEASE do not mix two mingw environments under MSys2 and think it will work!!!!


--- Code: ---C:\msys64\clang64\bin>C:\msys64\mingw64\bin\clangd.exe --version
--- End code ---

--- Code: ---C:\msys64\mingw64\bin\gcc.exe --version
--- End code ---

Mixing MINGW64 and CLANG64 will not work very well and will result in weird errors!!!!!

Tim S.

Wkerry:
I am not mixing MINGW64 and CLANG64. Clangd client is doing the "mixing", but I cannot figure out the mixing it is doing.

I have the compiler default set to GNU GCC MSYS MingW64 with the install directory set to C:\msys64\mingw64

The clangd plugin is configured for the clangd exe as:
    C:\msys64\mingw64\bin\clangd.exe

The --version shows that the gcc.exe and clangd.exe work correctly if they are used, so some other gcc.exe or clangd.exe is being called. I will rename the MSYS\*.32 directories and see if this helps.

Wkerry:
If I rename the C:\msys64\mingw32 directory to C:\msys64\mingw32.test I do not get the error pop up.

Navigation

[0] Message Index

[#] Next page

Go to full version