Recent Posts

Pages: 1 ... 4 5 6 7 8 [9] 10
81
I have never heard of  linking with a dll. I also think there should be a "libexchndl.dll.a". The link command has the following:

-lcodeblocks -lexchndl.dll -lshfolder -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwxmsw32u -mwindows

The first "-lcodeblocks" : codeblocks.dll and libcodeblocks.a are  created in the "devel32_64" directory. No problrm;

The second "-lexchndl.dll" : exchndl.dll is created in the "src\exchndl\win64\bin" directory. The is no export library (a or lib file). To be consistant there should be a "libexchndl.dll.a". There is a "src\exchndl\win64\lib" directory but it is empty.

To conform to usual practice:

1. "-lexchndl.dll" should be changed to "-lexchndl" in the link command
2. There should be a "exchndl.dll" in the "src\exchndl\win64\bin" directory. This is OK.
3. There should be a "libexchndl.a" in the "src\exchndl\win64\lib" directory.

I hope I am not wasting people's time on this.
82
Your compiler likely wants "libexchndl.dll.a" file to be copied along with the "exchndl.dll" file.

Tim S.
83
Development / Re: code completion breaks after changing header file
« Last post by Pecan on June 02, 2025, 07:03:56 pm »
Fixed svn r13668
84
Leap-15.6, gcc13.3.0, "cb-13667::plugins|compilergcc|depslib|src|cache.c'

I dropped a ticket with a correction :
 https://sourceforge.net/p/codeblocks/tickets/1535/
85
I used CodeBlocks_wx32_64.cbp with the last version of TDM-GCC. The link error is:

C:/msys64/TDM-GCC/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lexchndl.dll
collect2.exe: error: ld returned 1 exit status

exchndl.dll does exist.

I changed the line in the project file to <Add library="exchndl" and got the same error. Changing the file extension of exchndl.dll also does not help.

Anyway, my original work around seems to work but it would be nice to find a "clean" solution.
86
From CodeBlocks_wx32_64.cbp

Code
<Add library="exchndl.dll" />

I can see the above line causing problems like the OP for some toolchains.

Tim S.
87
The linker error would be helpful.

I use the self hosting method almost exclusively and never found this problem, even for clean compilations.
88
I recently bought a new computer and decided to reinstall the lastest versions of wxWidgets and Codeblocks. I had a link error stating that "exchndl.dll" was missing. It was obvious that I to rename the existing "exchndl.dll" to "exchndl.dll.dll". I did this and the build went fine and I updated. After building the ContribPlugins I did the update again. Copied the output file to a new directory and ran Codeblocks. It was missing "exchndl.dll". I then renamed "exchndl.dll.dll" to "exchndl.dll". Codeblocks ran fine.

While all of this worked it might be better to fix ths build procedure.

I have been using wxWidgets and Codeblocks for years. The combination is a good as any commercial IDE that I have used.

Keep up the good work!
89
Development / Re: code completion breaks after changing header file
« Last post by Hyena on June 01, 2025, 08:19:57 am »
Sorry, that's too much to ask. Perhaps it would make sense to contact Antonio Rojas for this (see screenshot for e-mail). He seems to be responsible for packaging C::B on Manjaro's package manager. The package provided is still at version 20.03 anyway, so pumping it to the newest version might be a good idea.
90
Development / Re: code completion breaks after changing header file
« Last post by Pecan on May 31, 2025, 09:10:47 pm »
@Hyena

Have a look at:
https://github.com/pecanh/Clangd_client/blob/main

And read https://github.com/pecanh/Clangd_client/blob/main/HowToInstall.txt

I updated Clangd_client to accommodate the Manjaro wxMutex problem and tested the install instructions twice.

See if they work for you and let me know of any errors.

Thanks
Pages: 1 ... 4 5 6 7 8 [9] 10