Thread: RE: [Dev-C++] OpenGL with Glut blues...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Daniel W. <dan...@ta...> - 2004-01-30 23:40:27
|
Thanks for the suggestion Scott. It's pointing to the proper bin in Dev-C++ in the compiler options. =20 I tried going through the compiler options and found nothing but the default listed and the G++ directory within the include file. But, I did notice that I had set Dev-C++ to create a Project for C++ so it made a resource file with that in it to link the icon. I took it out and still got the same message. =20 So I decided to try another example from scratch. The hello C. Upon creating a project I chose the OpenGL for the project, linked the glut file, but I am still getting the same message...=20 gcc: Compilation of header file requested gcc: file path prefix `C:\DEV-C_~1\Bin\' never used This is the hello.c example at this link... =20 http://www.opengl.org/resources/code/basics/redbook/index.html Is there a newer version of the glut that I should be using? I went to the Nate Robins site and downloaded the (everything you need to get started with glut) link. Do I need to use the glut32.dll as well? Should it be in the G++ file within the Include directory? =20 Any other ideas would be greatly appreciated,=20 DWW =20 -----Original Message----- From: Scott Simontis [mailto:age...@co...]=20 Sent: Friday, January 30, 2004 3:30 PM To: Daniel Watson Subject: Re: [Dev-C++] OpenGL with Glut blues... There is no order they need to be in. However, I think it helps to sort them out. I list custom headers first, then library headers, then C++ headers, and finnaly C headers. It looks like it is saying that one of the headers has C:\DEV-C_~1\Bin\ in it. All of the headers aren't there. Go to Tools -> Compiler Options. Then, click on the Directories tab.=20 Next, click on the Libraries, C Headers, and C++ Headers sub tabs and make sure C:\Dev-C_~1\Bin or anything like that is in one of those fields. Daniel Watson wrote: > I am trying to compile a basic example from the openGL site,=20 > alpha3d.c.=20 > (http://www.opengl.org/resources/code/basics/redbook/index.html) > =20 > At first I was getting a number of undefined references.=20 > =20 > After going through a number of postings on bloodshed for including=20 > links, then not including some links but try this link, I am down to=20 > two linker errors... > =20 > g++: Compilation of header file requested > g++: file path prefix `C:\DEV-C_~1\Bin\' never used > Here are the two files I have linked in... > C:\Dev-C++\Include\Gl\glut.h > C:\Dev-C++\Lib\glut32.lib > =20 > I have also set the comppiler option to support All ANSI C. > =20 > And here are the include lines at the opening of the script... > =20 > #include <Gl/glut.h> > #include <stdlib.h> > #include <stdio.h> > =20 > Is there a certain order the includes should be in? > I am using glut 3.7.6 > =20 > Thanks in advance, > DWW > =20 |
From: Scott S. <age...@co...> - 2004-01-31 21:24:24
|
The .dll is only for linking dynamically, where you use a .dll and it is distributed with your file versus being put in the .exe. Make sure you have all of the required .a files linked, and none of your headers are in the bin list. Or, try pulling the bin thing from the list of headers and libs and see what happens. If you can get access to another compiler, try using it. I am not sure if you have tried reinstalling Dev-C++ yet. Have you? Also, try upgrading to the latest version of Dev-C++. Daniel Watson wrote: >Thanks for the suggestion Scott. It's pointing to the proper bin in >Dev-C++ in the compiler options. > >I tried going through the compiler options and found nothing but the >default listed and the G++ directory within the include file. But, I did >notice that I had set Dev-C++ to create a Project for C++ so it made a >resource file with that in it to link the icon. I took it out and still >got the same message. > >So I decided to try another example from scratch. The hello C. Upon >creating a project I chose the OpenGL for the project, linked the glut >file, but I am still getting the same message... > >gcc: Compilation of header file requested >gcc: file path prefix `C:\DEV-C_~1\Bin\' never used > > >This is the hello.c example at this link... > >http://www.opengl.org/resources/code/basics/redbook/index.html > > >Is there a newer version of the glut that I should be using? I went to >the Nate Robins site and downloaded the (everything you need to get >started with glut) link. Do I need to use the glut32.dll as well? >Should it be in the G++ file within the Include directory? > >Any other ideas would be greatly appreciated, >DWW > > >-----Original Message----- >From: Scott Simontis [mailto:age...@co...] >Sent: Friday, January 30, 2004 3:30 PM >To: Daniel Watson >Subject: Re: [Dev-C++] OpenGL with Glut blues... > >There is no order they need to be in. However, I think it helps to sort >them out. I list custom headers first, then library headers, then C++ >headers, and finnaly C headers. It looks like it is saying that one of >the headers has C:\DEV-C_~1\Bin\ in it. All of the headers aren't there. > >Go to Tools -> Compiler Options. Then, click on the Directories tab. >Next, click on the Libraries, C Headers, and C++ Headers sub tabs and >make sure C:\Dev-C_~1\Bin or anything like that is in one of those >fields. >Daniel Watson wrote: > > > >>I am trying to compile a basic example from the openGL site, >>alpha3d.c. >>(http://www.opengl.org/resources/code/basics/redbook/index.html) >> >>At first I was getting a number of undefined references. >> >>After going through a number of postings on bloodshed for including >>links, then not including some links but try this link, I am down to >>two linker errors... >> >>g++: Compilation of header file requested >>g++: file path prefix `C:\DEV-C_~1\Bin\' never used >>Here are the two files I have linked in... >>C:\Dev-C++\Include\Gl\glut.h >>C:\Dev-C++\Lib\glut32.lib >> >>I have also set the comppiler option to support All ANSI C. >> >>And here are the include lines at the opening of the script... >> >>#include <Gl/glut.h> >>#include <stdlib.h> >>#include <stdio.h> >> >>Is there a certain order the includes should be in? >>I am using glut 3.7.6 >> >>Thanks in advance, >>DWW >> >> >> > > > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |