🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Linker problem...

Started by
2 comments, last by mahomedia 23 years, 11 months ago
Hi! Everybody.. A have a problem in my c++ compiler. My compiler is Blood Shead Dev-C++. When i used gluPerspective(..) statement i get an error message: "undefined referance to glu32.lib" can you help me??
Mahomedia
Advertisement
I don''t knoe much about your compiler, but this stuff should do it:

1.) Make sure that you link with glu32.lib
2.) Make sure that you have the glu32.dll
3.) Include all GL headers

hope that helps

Tim

--------------------------
www.gamedev.net/hosted/glvelocity
glvelocity.gamedev.net
www.glvelocity.com
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
I could never get either OpenGL or DirectX to work with Borland Compilers. Is that your problem? (I mean pre-BCB compilers). If you have MSVC then you should have no problem . If not.. get it! (And I am one of those anti-M$ guys.. *sigh*.. Bloody market share!)


-Chris Bennett ("Insanity" of Dwarfsoft)

Check our site:
http://www.crosswinds.net/~dwarfsoft/
Check out our NPC AI Mailing List :
http://www.egroups.com/group/NPCAI/
made due to popular demand here at GDNet :)
Have you set up your linker options for your project?

Under Project->Project Options

In the first text box "Linker Options", make sure to have the following: -lopengl32 -lglu32 -lglut32

also you should have the following:

..\dev-c++\lib\glu32.def
..\dev-c++\lib\libglu32.a

I also recommend visiting the dev-c++ resource site. It includes upgrades to the opengl environment within dev-c++. Visit
http://members.fortunecity.com/honglilai

I hope that help

This topic is closed to new replies.

Advertisement