Thread: [Dev-C++] `GL_BGR_EXT' undeclared
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Napoleon A. <n_a...@ya...> - 2003-03-12 22:21:48
|
I have this problem compiling a sample program from www.GameTutorials.com and I get this error message. I'll apreaciate your help please. Compiler: Default compiler Building Makefile: "C:\Projects\OpenGl\Makefile.win" Executing make... make.exe -f "C:\Projects\OpenGl\Makefile.win" all gcc.exe -c main.cpp -o main.o -I"C:/MinGW/include" -D STRICT main.cpp: In function `bool LoadTexture()': main.cpp:302: `GL_BGR_EXT' undeclared (first use this function) main.cpp:302: (Each undeclared identifier is reported only once for each function it appears in.) make.exe: *** [main.o] Error 1 Execution terminated Thanx __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |
|
From: Napoleon A. <n_a...@ya...> - 2003-03-13 20:27:01
|
Thanks alot Damien, your solution helped get rid of the problem I had but I now get the following linker error: Compiler: Default compiler Building Makefile: "C:\Projects\OpenGl\Makefile.win" Executing make... make.exe -f "C:\Projects\OpenGl\Makefile.win" all gcc.exe bitmap_class.o main.o OGL.o -o "NHOpenGL.exe" -L"C:/MinGW/lib" -mwindows -lopengl32 -lglu32 main.o(.text+0x4ee):main.cpp: undefined reference to `__gxx_personality_sj0' make.exe: *** [NHOpenGL.exe] Error 1 Execution terminated --- Damien Alleyne <g_...@ho...> wrote: --------------------------------- This may be a silly response, but... did you include a glext.h header? This file has the definitions of most gl extensions you may use. I found out that the glext.h file is inside of the latest distribution of Mingw compilers, so include it in with the other OpenGL header files. __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |
|
From: Napoleon A. <n_a...@ya...> - 2003-03-15 18:49:28
|
The program is Texture Mapping Part 2. The one which does not use Glut. Thanks. Napoleon. --- Damien Alleyne <g_...@ho...> wrote: --------------------------------- I'm not sure what could have caused that linking prob. If you haven't figure it out yet, tell me which Gametutorials.com tutorial is causing the error. I'll see if I can look into it. Original Gs Up >From: Napoleon Ahiable >To: Damien Alleyne , DevCpp >Subject: Re:[Dev-C++] `GL_BGR_EXT' undeclared >Date: Thu, 13 Mar 2003 12:26:57 -0800 (PST) > >Thanks alot Damien, >your solution helped get rid of the problem I had but I now get the >following linker error: > >Compiler: Default compiler >Building Makefile: "C:\Projects\OpenGl\Makefile.win" >Executing make... >make.exe -f "C:\Projects\OpenGl\Makefile.win" all >gcc.exe bitmap_class.o main.o OGL.o -o "NHOpenGL.exe" -L"C:/MinGW/lib" >-mwindows -lopengl32 -lglu32 >main.o(.text+0x4ee):main.cpp: undefined reference to >`__gxx_personality_sj0' > >make.exe: *** [NHOpenGL.exe] Error 1 >Execution terminated > > >--- Damien Alleyne wrote: > __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |
|
From: Napoleon A. <n_a...@ya...> - 2003-03-18 02:52:55
|
Thank Damien, The problem is fixed now. Its abit strange but my default language is C++ and going through the compile log I noticed that the make file was using gcc for the compilation so i decided to create a now project and added the same files but this time making sure that the make file uses g++ and it compiled without problems. I added the same files again to the old project that uses gcc and the same problem came up. I find it strange because i thought gcc and g++ were pretty much the same. Thanx --- Damien Alleyne <g_...@ho...> wrote: --------------------------------- Well Napoleon, unless i'm mistaken, and you did not download your tutorial from here, http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg2.htm, I don't see the prob you seem to be having. Unless you modified the code or are referring to another tutorial, I don't see why you needed the GL_BGR_EXT to be declared in the first place. The code has no reference to it. If the code has been modified, email me the modifications, or give me the exact website you downloaded the sample from. Original G --------------------------------- Protect your PC - Click here for McAfee.com VirusScan Online __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
|
From: Per W. <pw...@ia...> - 2003-03-18 06:43:09
|
The main difference between gcc and g++ is the language defaults, i.e. the assumptions about what language extensions that should be compiled as c and as c++. /Per W On Mon, 17 Mar 2003, Napoleon Ahiable wrote: > Thank Damien, > The problem is fixed now. Its abit strange but my default language is > C++ and going through the compile log I noticed that the make file was > using gcc for the compilation so i decided to create a now project and > added the same files but this time making sure that the make file uses > g++ and it compiled without problems. > > I added the same files again to the old project that uses gcc and the > same problem came up. > > I find it strange because i thought gcc and g++ were pretty much the > same. > > Thanx > > --- Damien Alleyne <g_...@ho...> wrote: > > --------------------------------- > > Well Napoleon, unless i'm mistaken, and you did not download your > tutorial from here, > http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg2.htm, I don't > see the prob you seem to be having. Unless you modified the code or are > referring to another tutorial, I don't see why you needed the > GL_BGR_EXT to be declared in the first place. The code has no > reference to it. If the code has been modified, email me the > modifications, or give me the exact website you downloaded the sample > from. > > > > > > > > > Original G > > > --------------------------------- > Protect your PC - Click here for McAfee.com VirusScan Online > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |