Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Wkerry on May 10, 2025, 12:45:45 pm

Title: 32 buit SF update
Post by: Wkerry on May 10, 2025, 12:45:45 pm
Do the 32 bit build have the same issues with Clangd a the 64bit versions?
Title: Re: 32 buit SF update
Post by: Pecan on May 10, 2025, 08:28:01 pm
Do the 32 bit build have the same issues with Clangd a the 64bit versions?

what issues are you referring to?
Title: Re: 32 buit SF update
Post by: Wkerry on May 11, 2025, 12:52:09 am
The one you posted about in:
https://forums.codeblocks.org/index.php/topic,26043.msg177315.html#msg177315
Title: Re: 32 buit SF update
Post by: Pecan on May 11, 2025, 02:56:03 am
I don't have access to a 32bit version of CodeBlocks, but I know that you need to use the mingw version of clangd.exe when compiling with mingw.

But the MinGW folder of the distributed CB 2503 does not have the mingw version of clangd.exe. The version there is the clang compiler's version of clangd. So it's only usable when compiling with with clang.exe, not mingw.

I don't know where you would find a clangd.exe 32bit executable. Maybe someone using the 32bit version of CB knows.

Here' what Perpexity has to say:
Code
Using 64-bit clangd with 32-bit CodeBlocks: In most cases, you can use a 64-bit clangd.exe with a 32-bit CodeBlocks installation, provided your system is 64-bit Windows.
 The communication between CodeBlocks and clangd is via LSP (over pipes or sockets), and does not require both processes to be the same bitness, as long as the OS supports running both.

However, plugin compatibility and stability may vary, and some users have reported issues with the Clangd Client plugin in CodeBlocks, regardless of bitness.

It looks to me like your best bet is to download Msys2 and use the clangd.exe in the Mingw64\bin folder if you're OS is 64bit.

Else you could try to find a 32bit Msys2 that includes mingw with clangd.exe in the Mingw32/bin folder.

Title: Re: 32 buit SF update
Post by: MortenMacFly on May 11, 2025, 10:48:19 am
Do the 32 bit build have the same issues with Clangd a the 64bit versions?
We just bundle the GCC/Clang compiler that stems from WinLibs (version 14.2.0 at the time of the release). You can find the reference in the readme a SourceForge.
If you need different executables / versions you can download the right bundle that works for you and integrate that compiler suite into C::B.

A different LLVM/Clang version can be downloaded from here, for example:
https://releases.llvm.org/download.html
...or more recent:
https://github.com/llvm/llvm-project/releases/tag/llvmorg-20.1.4
...which works for me also on 32 bit.