News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

ld.exe error! :(

Started by JMiller, October 28, 2005, 04:39:48 PM

Previous topic - Next topic

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?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

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?

rickg22

YES! :D Please do! We need to have some publicity. (Note: Linking to codeblocks in other forums with your user's signature is considered SPAM, and it only confuses the search engines. I certainly do NOT recommend it)

JMiller

 :D It's ok it'll be linked to my fairly new(but growing) site today! NewbiesNetwork.com and I'll let everyone I know about it! 8)

rickg22

I noticed your link to *cough cough* the competition under the "C++" icon. Please fix that :P

Also, some of your links are too wide, making the screen distorted.