Re: FW: [Dev-C++] OpenGL with Glut blues...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: andre <bo...@wa...> - 2004-02-05 20:55:42
|
I had the same problem and here is the solution provided by Mats Lidstrom, yesterday, in a thread. Snipped from http://sourceforge.net/forum/message.php?msg_id=2256328 " (3) Find and remove devcpp.ini and devcpp.cfg. In Windows 9x this is easy, they are in the Dev directory. For the other Windows - 2000, XP, NT - it is a little harder, as they are placed in a directory that Windows calls hidden. On this computer, the are in: c:\documents and settings\username\local settings\application data You can find them with Windows search, if you remember to click the box that says look in hidden folders. It is VITAL that these files be removed, as they contain information about your current install. If this information is still there when you re-install, it can foul things up again. Please, if you have XP, 2000 etc., the files ARE there. Do not answer that the files were not on my machine. " HTH André Daniel Watson wrote: > I have uninstalled Dev-C++ and installed from scratch. > > Okay, uninstalling and installing from scratch seems to be a bad thing. > 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... > > 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... > 2 C:\Dev-Cpp\Examples\FileEditor\2 unable to run program file. > > Thanks, > DWW > > > -----Original Message----- > From: Scott Simontis [mailto:age...@co...] > 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 >>excited about writing my first gui app (other than the browser) and am >>really lost without the feedback from this mailing list. >> >>I also tried using SDL which came up with errors reading anything in >>the gl directory. I think you're on to something for the parsing the >>file, I don't think it's reading the file correctly at all. With the >>lib file it was unable to get passed the first six lines which were a >>bunch of strange characters. >> >>I tried linking the glut32.dll but it didn't change anything. >> >>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 >>advance, if that doesn't do it, are there any other suggestions for >>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 >>I'm doing just in case I'm not doing something or doing something I >>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. >>4) and compile >> >>(I have also checked in the compiler options to support all ANSI C >>being the example was a C file.) >> >>Just wanted to double check. I've learned first hand that sometimes >>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 >>upgrade was successful. >> >>Thanks, >>DWW >> >> >> >>-----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 >>install correctly. It sounds like Dev-C++ doesn't like that file. FOr >>one thing, Dev-C++ uses .a, not .lib! Try the .dll file. >>Daniel Watson wrote: >> >> >> >> >>>Thanks once again for the input Scott, I have upgraded to 4.9.8.5 and >>>really enjoy the new environment. >>>The errors are down to the glut32.lib file... >>> >>>6 C:\Dev-C++\Lib\glut32.lib unterminated string or character constant >>>6 C:\Dev-C++\Lib\glut32.lib possible real start of unterminated >>>constant >>> >>>I redownloaded the glut files from Nate Robin's site which was linked >>> >>> > >>from the openGL site... > >> >> >> >>>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 >>>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 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>>------------------------------------------------------- >>>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 >>> >>> >>> >>> >>> >> >> >> >> > > > > > ------------------------------------------------------- > 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 > |