We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › cannot compile opengl file using eclipse
Page Index Toggle Pages: 1
cannot compile opengl file using eclipse (Read 1184 times)
cannot compile opengl file using eclipse
Apr 11th, 2009, 9:51pm
 
I seem to have trouble building an opengl project using Eclipse,on Windows. I have copied glut.dll and glut32.dll in the system32 folder , and i am linking the project with the following libraries : opengl32, glut32,glu32,glut (all the libraries i could find  Smiley ) and i get this error :

E:/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/GL/glut.h:4
86: undefined reference to `___glutInitWithExit@12'
This happens for another 2 functions that interact with the operating system's graphical interface(glutCreateMenuWithExit , glutCreateWindowWithExit).
My linking parameters : -lopengl32  -lglut -lglut32 -lglu32 -L"E:\CodeBlocks\MinGW\lib"
All the headers are in the right place(E:\CodeBlocks\MinGW\include).
Can you please help me?I really can't figure it out!
Thank you!
Re: cannot compile opengl file using eclipse
Reply #1 - Apr 12th, 2009, 2:37am
 
I don't want to be a douche, but I fail to see how it is related to Processing, it looks like a C or C++ issue...
Anyway, search for "Dependency Walker" on the Net. That's a freeware able to tell you want functions are publicly available in a DLL. Check if those you are trying to link to are present in your DLLs. Perhaps you have an old version of those.
Re: cannot compile opengl file using eclipse
Reply #2 - Apr 12th, 2009, 10:16am
 
Well, i've used the same libraries when compiling using the command line or another IDE.So i assume there is a another problem.
Thank you for your answer!
Page Index Toggle Pages: 1