Code::Blocks Forums

User forums => Help => Topic started by: charles5577 on September 18, 2026, 10:22:39 am

Title: Building CB : cannot find -lexchndl.dll: No such file or directory
Post by: charles5577 on September 18, 2026, 10:22:39 am
I have been using wxWidgets + CodeBlocks for quite a few years now. Very good IDE. Every year or so I check for updates and reinstall everything including the compiler. Before I used the TDM-GCC compiler but this time I switched to the MSYS2. I downloaded a functional version of CodeBlocks and then tried to build a new version of CodeBlocks using CodeBlocks_wx32_64.cbp. It does not find exchndl.dll.

exchndl.dll exists in "C:\msys64\codeblocks_25.03\src\exchndl\win64\bin"
I tried moving it to "C:\msys64\codeblocks_25.03\src\exchndl\win64\lib" but that did not work.
I tried renaming it to exchndl.dll.a. That did not work.

For the linker, line 150 of CodeBlocks_wx32_64.cbp has "<Add library="exchndl.dll" />" and line 166 has         
"<Add directory="exchndl/win64/lib" />".

I am wondering if the new compiler/linker does not accept a dll as a linkable library.

Can anyone help with this?
Title: Re: Building CB : cannot find -lexchndl.dll: No such file or directory
Post by: stahta01 on September 18, 2026, 07:17:32 pm
Are you trying to build the last release or a recent SVN version of CB?

If last release, build the package linked here https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-codeblocks/PKGBUILD (https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-codeblocks/PKGBUILD)

Tim S
Title: Re: Building CB : cannot find -lexchndl.dll: No such file or directory
Post by: ollydbg on September 19, 2026, 03:58:45 am
I also suggest building the C::B with the latest SVN code.
Title: Re: Building CB : cannot find -lexchndl.dll: No such file or directory
Post by: stahta01 on September 19, 2026, 02:08:32 pm
Under Msys2 MinGW, I would try building using the configure/make method.
Link to patch to help build using that method https://github.com/stahta01/MINGW-packages/blob/codeblocks-git/mingw-w64-codeblocks/003-fix-link-to-tinyxml.patch (https://github.com/stahta01/MINGW-packages/blob/codeblocks-git/mingw-w64-codeblocks/003-fix-link-to-tinyxml.patch)

Configure options that are likely needed
Code
 --disable-pch --with-contrib-plugins=all,-Valgrind
Title: Re: Building CB : cannot find -lexchndl.dll: No such file or directory
Post by: stahta01 on September 19, 2026, 03:10:34 pm
CodeBlocks configure make build under Msys2 using svn repo


Based partly on https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Arch_Linux

Title: Re: Building CB : cannot find -lexchndl.dll: No such file or directory
Post by: charles5577 on September 22, 2026, 11:59:39 am
I tried with the latest SVN code. It works.
Thanks everyone!