From: Bertus D. <ber...@pl...> - 2011-04-06 08:08:00
|
-----Oorspronkelijk bericht----- From: Fay, John F Dr CTR USAF AFMC AAC/XRS Sent: Tuesday, April 05, 2011 9:41 PM Indeed, I think the problem was how to install freeglut. Lately I am programming in Ada. and use GNAT Programming Studio downloaded from Librecore. That program is able to use a lot of programming languages. for helping one of my sons I need to create son programs in C/C++ with OpenGL (or Glut/Freeglut) I include for the ld linker the switches -l and -L to reach the freeglut archive. that seems to work . I only cannot reach the opengl32 dll. I just include the complete list of messages: gprbuild -d -PE:\cpp\Projecten\Test\testglut.gpr -j4 -s -p g++ -c -g decal.c ar cr libtestglut.a ... ranlib libtestglut.a g++ decal.o -g -LD:\freeglut\lib -lfreeglut -o decal.exe decal.o: In function `Z10decal_polyv': E:/cpp/Projecten/Test/decal.c:22: undefined reference to `glBegin@4' E:/cpp/Projecten/Test/decal.c:23: undefined reference to `glNormal3f@12' E:/cpp/Projecten/Test/decal.c:24: undefined reference to `glVertex3i@12' E:/cpp/Projecten/Test/decal.c:25: undefined reference to `glVertex3i@12' E:/cpp/Projecten/Test/decal.c:26: undefined reference to `glVertex3i@12' E:/cpp/Projecten/Test/decal.c:27: undefined reference to `glVertex3i@12' E:/cpp/Projecten/Test/decal.c:29: undefined reference to `glVertex3f@12' E:/cpp/Projecten/Test/decal.c:30: undefined reference to `glVertex3f@12' E:/cpp/Projecten/Test/decal.c:31: undefined reference to `glVertex3f@12' E:/cpp/Projecten/Test/decal.c:32: undefined reference to `glVertex3f@12' E:/cpp/Projecten/Test/decal.c:33: undefined reference to `glEnd@0' decal.o: In function `Z6redrawv': E:/cpp/Projecten/Test/decal.c:42: undefined reference to `glClear@4' E:/cpp/Projecten/Test/decal.c:44: undefined reference to `glEnable@4' E:/cpp/Projecten/Test/decal.c:45: undefined reference to `glStencilFunc@12' E:/cpp/Projecten/Test/decal.c:46: undefined reference to `glStencilOp@12' E:/cpp/Projecten/Test/decal.c:47: undefined reference to `glDepthFunc@4' E:/cpp/Projecten/Test/decal.c:49: undefined reference to `glPushMatrix@0' E:/cpp/Projecten/Test/decal.c:50: undefined reference to `glColor3f@12' E:/cpp/Projecten/Test/decal.c:51: undefined reference to `glTranslatef@12' E:/cpp/Projecten/Test/decal.c:52: undefined reference to `glScalef@12' E:/cpp/Projecten/Test/decal.c:53: undefined reference to `glRotatef@16' E:/cpp/Projecten/Test/decal.c:54: undefined reference to `glEnable@4' E:/cpp/Projecten/Test/decal.c:56: undefined reference to `glDisable@4' E:/cpp/Projecten/Test/decal.c:57: undefined reference to `glPopMatrix@0' E:/cpp/Projecten/Test/decal.c:59: undefined reference to `glStencilFunc@12' E:/cpp/Projecten/Test/decal.c:60: undefined reference to `glStencilOp@12' E:/cpp/Projecten/Test/decal.c:61: undefined reference to `glDepthFunc@4' E:/cpp/Projecten/Test/decal.c:63: undefined reference to `glPushMatrix@0' E:/cpp/Projecten/Test/decal.c:64: undefined reference to `glTranslatef@12' E:/cpp/Projecten/Test/decal.c:65: undefined reference to `glRotatef@16' E:/cpp/Projecten/Test/decal.c:66: undefined reference to `glRotatef@16' E:/cpp/Projecten/Test/decal.c:67: undefined reference to `glTranslatef@12' E:/cpp/Projecten/Test/decal.c:68: undefined reference to `glColor3f@12' E:/cpp/Projecten/Test/decal.c:70: undefined reference to `glPopMatrix@0' E:/cpp/Projecten/Test/decal.c:72: undefined reference to `glDisable@4' decal.o: In function `main': E:/cpp/Projecten/Test/decal.c:105: undefined reference to `glEnable@4' E:/cpp/Projecten/Test/decal.c:106: undefined reference to `glMatrixMode@4' E:/cpp/Projecten/Test/decal.c:107: undefined reference to `glOrtho@48' E:/cpp/Projecten/Test/decal.c:108: undefined reference to `glMatrixMode@4' E:/cpp/Projecten/Test/decal.c:110: undefined reference to `glEnable@4' E:/cpp/Projecten/Test/decal.c:111: undefined reference to `glEnable@4' E:/cpp/Projecten/Test/decal.c:112: undefined reference to `glEnable@4' E:/cpp/Projecten/Test/decal.c:113: undefined reference to `glCullFace@4' E:/cpp/Projecten/Test/decal.c:115: undefined reference to `glLightfv@12' E:/cpp/Projecten/Test/decal.c:116: undefined reference to `glColorMaterial@8' E:/cpp/Projecten/Test/decal.c:117: undefined reference to `glEnable@4' collect2: ld returned 1 exit status gprbuild: link of decal.c failed To: FreeGLUT developers list Subject: Re: [Freeglut-developer] Installing freeglut on windows with studioGPS I don't think this is a DLL problem. DLL problems happen at execution time; if I read your initial reports correctly, you are having troubles linking. Did I read that wrong? John F. Fay Technical Fellow, Modeling and Simulation Jacobs Technology / TEAS Group P.O. Box 1935, Eglin AFB, FL 32542-5000 850-883-3496 -----Original Message----- From: ldries46 [mailto:ber...@pl...] Sent: Tuesday, April 05, 2011 2:19 PM To: fre...@li... Subject: Re: [Freeglut-developer] Installing freeglut on windows with studio GPS I have created my own dll in the past with visualC++ in Windows. You just have to put something in the the header file to make the ptogram seraching the PATH directories to 'the appropriated dll. So if in an example program that dll is used I can assume that the appropriate coding is created to reac these dll's. It is not only this dll that makes the problem other sample program have the same problem. Bertus Fay, John F Dr CTR USAF AFMC AAC/XRS wrote: > > My question actually was not about whether the libraries were reachable > but rather about whether you were linking to them when linking the > program. I have zero experience with your operating system, but in > Microsoft Visual C, there is a tab in the "Project Settings" window > where you list all the library files that you want linked into your > executable. Since you don't have any "freeglut" linking errors, you > have evidently added "freeglut.lib" to that list. What I am asking is > whether that list also has "opengl32.lib" in it. > > John F. Fay > Technical Fellow, Modeling and Simulation > Jacobs Technology / TEAS Group > P.O. Box 1935, Eglin AFB, FL 32542-5000 > 850-883-3496 > > > -----Original Message----- > From: ldries46 [mailto:ber...@pl...] > Sent: Tuesday, April 05, 2011 12:12 PM > To: fre...@li... > Subject: Re: [Freeglut-developer] Installing freeglut on windows with > studio GPS > > > I just have loaded a sample proram to see if my installation works. > I found a lot of errors; about 60. > a number of them where because the freeglut archive was not reacable. > That > is solved. > The rest of the errors seem to be openGL routines instead of GLUT > routines. > A number of GLUT routines are without any error > I thought that the dll's in Windows \system32 (in PATH) were alays > reachable > but it looks otherwise. > Indeed freeglut is placed in the same directory. > I still hope that I can get it working. > > Bertus > ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Freeglut-developer mailing list Fre...@li... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |