RE: FW: [Dev-C++] OpenGL with Glut blues...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel W. <dan...@ta...> - 2004-02-05 19:23:34
|
I have uninstalled Dev-C++ and installed from scratch. =20 Okay, uninstalling and installing from scratch seems to be a bad thing.=20 I feel like I'm going backwards. :) Now, with 4.9.8.0, I can't even compile the default examples(File Editor). In my compiler log, it shows...=20 Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Examples\FileEditor\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Examples\FileEditor\Makefile.win" all Execution terminated Then in the compiler tab it shows... =20 2 C:\Dev-Cpp\Examples\FileEditor\2 unable to run program file. =20 Thanks,=20 DWW -----Original Message----- From: Scott Simontis [mailto:age...@co...]=20 Sent: Wednesday, February 04, 2004 4:22 PM To: Daniel Watson Subject: Re: FW: [Dev-C++] OpenGL with Glut blues... If you need it, I can send you my headers to see if that works. Daniel Watson wrote: >Scott, >I can't thank you enough for your patience and help. I'm really=20 >excited about writing my first gui app (other than the browser) and am=20 >really lost without the feedback from this mailing list. > >I also tried using SDL which came up with errors reading anything in=20 >the gl directory. I think you're on to something for the parsing the=20 >file, I don't think it's reading the file correctly at all. With the=20 >lib file it was unable to get passed the first six lines which were a=20 >bunch of strange characters. > >I tried linking the glut32.dll but it didn't change anything. =20 > >The DevPak asked me what to open it with. (I'm using Windows 2000) > >I may just try uninstalling Dev-C++ and reinstalling completely. In=20 >advance, if that doesn't do it, are there any other suggestions for=20 >building graphical applications that doesn't use the gl directories? > >Since this is my first time building a gui app, I will list the steps=20 >I'm doing just in case I'm not doing something or doing something I=20 >shouldn't. > >1) I open Dev-C++ start a new project >2) Bring in the source code >3) Link the gl files needed (as suggested in the heading of the >examples) > I am using the gui linking feature in the title bar. =20 >4) and compile > >(I have also checked in the compiler options to support all ANSI C=20 >being the example was a C file.) > >Just wanted to double check. I've learned first hand that sometimes=20 >beginners can easily miss the obvious being overcome anticipation. Did >I possibly overlook something obvious. > >I also compiled a couple of my older scripts to make sure that the=20 >upgrade was successful. > >Thanks, >DWW > >=20 > >-----Original Message----- >From: Scott Simontis [mailto:age...@co...] >Sent: Tuesday, February 03, 2004 4:24 PM >To: Daniel Watson >Subject: Re: FW: [Dev-C++] OpenGL with Glut blues... > >The DevPak is a good idea. Just download it, and run it. It should=20 >install correctly. It sounds like Dev-C++ doesn't like that file. FOr=20 >one thing, Dev-C++ uses .a, not .lib! Try the .dll file. >Daniel Watson wrote: > > =20 > >>Thanks once again for the input Scott, I have upgraded to 4.9.8.5 and=20 >>really enjoy the new environment. >>The errors are down to the glut32.lib file...=20 >> >>6 C:\Dev-C++\Lib\glut32.lib unterminated string or character constant >>6 C:\Dev-C++\Lib\glut32.lib possible real start of unterminated=20 >>constant >> >>I redownloaded the glut files from Nate Robin's site which was linked >> =20 >> >from the openGL site...=20 > =20 > >>http://www.opengl.org/resources/libraries/glut.html >> >>Any other suggestions? >> >>Thanks in advance, >>DWW >> >> >>________________________________ >> >>From: Scott Simontis [mailto:age...@co...] >>Sent: Sat 1/31/2004 3:23 PM >>To: Daniel Watson; dev...@li... >>Subject: Re: [Dev-C++] OpenGL with Glut blues... >> >> >> >>The .dll is only for linking dynamically, where you use a .dll and it=20 >>is distributed with your file versus being put in the .exe. Make sure=20 >>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=20 >>headers and libs and see what happens. If you can get access to=20 >>another >> =20 >> > > =20 > >>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 >> =20 >> >Dev-C++. > =20 > >>Daniel Watson wrote: >> >>=20 >> >> =20 >> >>>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=20 >>>default listed and the G++ directory within the include file. But, I=20 >>>did notice that I had set Dev-C++ to create a Project for C++ so it=20 >>>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=20 >>>glut >>> =20 >>> > > =20 > >>>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...=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=20 >>>to the Nate Robins site and downloaded the (everything you need to=20 >>>get >>> =20 >>> > > =20 > >>>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, 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=20 >>>sort them out. I list custom headers first, then library headers,=20 >>>then >>> =20 >>> > > =20 > >>>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 >>> =20 >>> >aren't there. > =20 > >>>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=20 >>>fields. >>>Daniel Watson wrote: >>> >>> >>> >>> =20 >>> >>> =20 >>> >>>>I am trying to compile a basic example from the openGL site,=20 >>>>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=20 >>>>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 >>>> >>>>=20 >>>> >>>> =20 >>>> >>>> =20 >>>> >>>------------------------------------------------------- >>>The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference=20 >>>on Open Tools Development and Integration See the breadth of Eclipse=20 >>>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 >>> >>> >>> >>> =20 >>> >>> =20 >>> >> >> >> >>------------------------------------------------------- >>The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference=20 >>on >> =20 >> > > =20 > >>Open Tools Development and Integration See the breadth of Eclipse=20 >>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 >> >>=20 >> >> =20 >> > > > =20 > |