User forums > Help
Error when linking custom libraries
libfab:
First off,
in GUI.cbp you get:
<Linker>
<Add library="C:\Program Files (x86)\CodeBlocks\MinGW\lib\liballeg.a" />
<Add library="D:\Projects\Programming\GAME CORE\lib\Debug\libgamecore.a" />
<Add directory="D:\Projects\Programming\GAME CORE\lib\Debug" />
</Linker>
OK? There's something missing on the face of it, like:
<Add directory="C:\Program Files (x86)\CodeBlocks\MinGW\lib" />
Second, if this does not cure the issue, rename the file path
C:\Program Files (x86)\CodeBlocks\MinGW\lib
like this:
C:\Program Files_(x86)\CodeBlocks\MinGW\lib
CB has issues with whitespace here and there (I spotted one recently in the console Run menu).
Best, Fab
Vinther:
Ok, now I went through all of the .cbp files, making sure all of the libraries and directories were added for both the Release and Debug targets, and for the projects themselves...
And it bloody worked! I didn't even have to mess with the spaces in the paths.
Libfab, I could kiss you :D
I guess it was all just because of me being a bit sloppy when I entered all of the paths in CB, before. But it was kind of hard to keep track of everything in there...
Oh, well. Thank you!
Navigation
[0] Message Index
[*] Previous page
Go to full version