User forums > Help

ld.exe error! :(

(1/2) > >>

JMiller:
Hey all! First of all I want to say to the developers I love the look and feel of this IDE! Anyway I'm trying to develop using  GLFW but I keep getting this one error:  File: ld.exe  Message: cannot find -lglfw. This frustrates me because I really wanna switch to this ide from devC++. Please help!

thomas:
Do you actually have GLFW, i.e. did you build it like described in the WiKi, or did you just download Code::Blocks and hit on the button in the templates screen?

JMiller:
Yep, I have GLFW, I downloaded and installed it via devPacks. Then I linked everything together. The glfwdll, libglfw.a,  the glfw.h file. I'm positive I did it correctly but it seems strange because a friend of mine is not having the problem I have.

thomas:
I don't use DevPaks, but I guess they contain the necessary things nevertheless. ;)

What you need is the header file placed in the GL folder, and libglfw.a in a place where your linker will find it (for example C:\codeblocks\lib). I assume you have the path added to your linker directories.

In the rare case that you want to link to GLFW dynamically (which is pretty much nonsense given its small size, but possible nevertheless), the linker needs libglfwdll.a and glfw.dll too.

Your project must contain the following libraries: glfw, opengl32, glu32, gdi32, user32, and kernel32.

Instead of using the DevPak, you can also build GLFW from sources, this takes about 2 minutes alltogether, so it may very well be worth it. Following the WiKi works reliably.

JMiller:
Ahhh..... This almost brings a tear to my eyes! Thanks Alot! The problem was I put the right file in the wrong folder! How dumb of me! Anyway I'd like to put a link on my site to the main page of this site, so people can be aware of this great IDE. Is that ok?

Navigation

[0] Message Index

[#] Next page

Go to full version