Help with Glut in Dev-C++

Started by
3 comments, last by codeman_nz 10 years, 5 months ago

I am losing my mind here. I just downloaded the glut devpak and created a new project using the glut template but I get errors like this:

[Linker Error] undefined reference to `_imp____glutInitWithExit@12'

I know this is linker error and I need to link the glut library but I have already done that like this:

-lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32

But I still get that error and I have no idea how to fix it.

Advertisement

Did you down load into the Dev C++ folder ?

Verify where it is on the Disk Drive and make Certain that folder location is referenced in your Project Settings

Your Brain contains the Best Program Ever Written : Manage Your Data Wisely !!

Are you using the original Bloodshed Dev-C++ (strongly not recommended -- it's horribly out of date and buggy), or are you using one of the updated versions (Orwell Dev-C++ or wxDev-C++ -- of the two I would recommend Orwell Dev-C++)? What version of Windows are you using?

...and where did you get the devpak from? Is it up-to-date?

- Jason Astle-Adams

If the linker only complains about the WithExit-functions, then it is probably the "atexit-hack". You can disable it with #define GLUT_DISABLE_ATEXIT_HACK before including the GLUT header.

Yes I downloaded into the dev c++ folder.

I am using wxDev-c++ running on windows 7

I downloaded the devpak from the devpak website and I think it is up to date.

No that is not the only one. It is coming back with a whole lot of errors.

This topic is closed to new replies.

Advertisement