Archived

This topic is now archived and is closed to further replies.

This topic is 5501 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I''m curently using Dev-C++. I''ve been using the NeHe tutorials, and they compile fine except for the linker errors. OpenGl32.lib continues to run into problems, i''ll list the errors reported: C:\DEV-C_~1\Bin\ld.exe: C:\Dev-C++\Lib\OPENGL32.LIB(OPENGL32.dll): warning: ignoring duplicate section .text'' C:\DEV-C_~1\Bin\ld.exe: C:\Dev-C++\Lib\OPENGL32.LIB(OPENGL32.dll): warning: ignoring duplicate section .idata$5'' and errors such as: C:\Dev-C++\Lib\OPENGL32.LIB(OPENGL32.dll)(.debug$S+0x0): multiple definition of `idata$5'' C:\Dev-C++\Lib\GLU32.LIB(GLU32.dll)(.debug$S+0x0): first defined here I''ve tried to dl the files from OpenGL.org, and have installed the files into my Lib directory, but to no avail. If any of you have any ideas and/or tips please let me know, or email me at Batta05@msn.com I''ve gone off to find myself Should i retUrn before i get back please keep me here

Share on other sites
hmmm looks like your made two copys of a func or somthing.make sure your not.also make sure windows doesnt use a func with the same name

Share on other sites
As far as I know, Dev-C++ (up to version 4 anyway) doesn''t support *.lib librarys. To link the OpenGl libraries you''ll have to dl DevC++ Versions (which are *.a files) or youcould try renaming the *.lib libraries to *.a (that might not work)

Share on other sites
try...

libOpenGL32.a
libglut32.a
libglaux.a
libglu32.a

I think those are right, you might not need glut32 though.

Share on other sites
Dev-C++ comes with the OpenGL library whos files are named as FireSlash described. To use them, add the following line to the linker options:
-lopengl32 -lglu32

And this for the rest of the libraries you might need:
lib name .a -> -l name