User forums > Using Code::Blocks

cannot find -lglut32.lib

<< < (2/2)

MortenMacFly:
Enable full compiler log (see my sig) and re-post, please.
With regards, Morten.

Multinode Nick:
Hi,

I have the same problem here with any static library (.lib), I also tested with glut.lib of course...

- I add folders link in Project/Build Options/Directories (include & lib).
- I add glut.lib and then (on compile) I get this error : cannot find –lglut.lib
- I believe this is an IDE vs ld.exe/gcc.exe integration  bug, so I remove .lib in the library name (glut).

It now seems to recognize the library, but I can't use anything in there. I get this error:
undefined reference to '__glutCreateWindowWithExit@8.

I had some doubt so I created my own .lib (in VS), I get the same errors. But if I create la static lib (.a) with the same code in C::B, everything's fine and works.

Did I do something wrong?

Nick

Navigation

[0] Message Index

[*] Previous page

Go to full version