User forums > Using Code::Blocks

Problems linking libraries

<< < (2/6) > >>

yaustar:
I did link them under Linker -> Link Libraries as well but that didn't work either.. I was wondering if it would be due to importing of options and settings from a VC++ 6.0 workspace...

I am also having similar problems with another set of libraries but since it is a custom built set, it may be better to ask the author instead.

thomas:
Probably not. Adding them to link libraries does exactly the same thing as -lopengl32 -lglu32, except that you can select an full pathname with a GUI file selector. But then, linking is a black art, so no guarantees.

rickg22:
Ok... let's see...

1) Search for the libraries you're linking, using windows xp's Find (in start menu). It may take a while, tho.
2) Make sure the directories where these files are located, are included in the "Linker directories".
3) Make sure the libraries are included in the "Link libraries".
4) Rebuild.

yaustar:
1) Search for the libraries you're linking, using windows xp's Find (in start menu). It may take a while, tho.
> C:\Program Files\CodeBlocks\lib

2) Make sure the directories where these files are located, are included in the "Linker directories".
> Compile -> Compiler Settings -> GNU GCC Compiler -> Linker tab ->  C:\Program Files\CodeBlocks\lib

3) Make sure the libraries are included in the "Link libraries".
> Check

4) Rebuild.
> Still the same problem

thomas:
Out of curiosity, does it work if you add absolute paths?
e.g.:
C:\Program Files\CodeBlocks\lib\opengl32.lib
C:\Program Files\CodeBlocks\lib\glu32.lib

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version