Page 1 of 1

[fixed]Broken SVN 1060

Posted: Sun Nov 18, 2007 9:58 pm
by randomMesh
My Linux box says:

Code: Select all

foo@ellis:~/irrlicht-svn/source/Irrlicht$ make NDEBUG=1
g++ -Wall -fexpensive-optimizations -O3 -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1  -c -o COpenGLExtensionHandler.o COpenGLExtensionHandler.cpp
COpenGLExtensionHandler.h: In member function »void* irr::video::COpenGLExtensionHandler::extGlMapBuffer(GLenum, GLenum)«:
COpenGLExtensionHandler.h:1437: Warnung: keine return-Anweisung in nicht void zurückgebender Funktion
COpenGLExtensionHandler.h: In member function »GLboolean irr::video::COpenGLExtensionHandler::extGlUnmapBuffer(GLenum)«:
COpenGLExtensionHandler.h:1449: Warnung: keine return-Anweisung in nicht void zurückgebender Funktion
COpenGLExtensionHandler.h: In member function »GLboolean irr::video::COpenGLExtensionHandler::extGlIsBuffer(GLuint)«:
COpenGLExtensionHandler.h:1461: Warnung: keine return-Anweisung in nicht void zurückgebender Funktion
COpenGLExtensionHandler.cpp: In member function »void irr::video::COpenGLExtensionHandler::initExtensions(bool)«:
COpenGLExtensionHandler.cpp:385: Fehler: ungültige Umwandlung von »void (*)(GLsizei, const GLuint*)« in »void (*)(GLenum, GLenum, GLint*)«
make: *** [COpenGLExtensionHandler.o] Fehler 1
regards
randomMesh

Posted: Sun Nov 18, 2007 11:21 pm
by hey_i_am_real
Got the same compilation errors (but translated in my language).

Posted: Sun Nov 18, 2007 11:24 pm
by hybrid
Yes, some missing returns in the wrapper functions. Should be fixed in revision 1061.

Posted: Mon Nov 19, 2007 12:26 am
by randomMesh
hybrid wrote:Yes, some missing returns in the wrapper functions. Should be fixed in revision 1061.
The warnings are gone indeed, but the error still remains:

Code: Select all

foo@ellis:~/irrlicht-svn/source/Irrlicht$ make NDEBUG=1
g++ -Wall -fexpensive-optimizations -O3 -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1  -c -o COpenGLExtensionHandler.o COpenGLExtensionHandler.cpp
COpenGLExtensionHandler.cpp: In member function »void irr::video::COpenGLExtensionHandler::initExtensions(bool)«:
COpenGLExtensionHandler.cpp:385: Fehler: ungültige Umwandlung von »void (*)(GLsizei, const GLuint*)« in »void (*)(GLenum, GLenum, GLint*)«
make: *** [COpenGLExtensionHandler.o] Fehler 1

Posted: Mon Nov 19, 2007 3:20 am
by Luke
weird that I didn't get those warnings, and sorry about the error, I didn't compile it under linux, and when I was copying and pasting missed one.

is SVN 1062 ok?

Posted: Mon Nov 19, 2007 4:24 am
by randomMesh
Luke wrote:is SVN 1062 ok?
Yes, 1062 compiles fine. Thanks for the quick fix.

Posted: Mon Nov 19, 2007 7:05 am
by hybrid
Oh, I see. I tried it with GL extension pointer disabled, so I was just using the immediate function calls...