- Code: Select all
g++ -DHAVE_CONFIG_H -I. -I/usr/local//include -I/usr/include/ -I/usr/lib64/opengl/xorg-x11/include/ -fpermissive -DFGBASE_DIR='"/usr/games/share/flightgear/"' -MT Subbucket.o -MD -MP -MF .deps/Subbucket.Tpo -c -o Subbucket.o Subbucket.cxx
Subbucket.cxx: In destructor ‘VBO<T>::~VBO()’:
Subbucket.cxx:45:27: warning: there are no arguments to ‘glDeleteBuffers’ that depend on a template parameter, so a declaration of ‘glDeleteBuffers’ must be available [-fpermissive]
Subbucket.cxx: In member function ‘void VBO<T>::upload(GLenum)’:
Subbucket.cxx:67:24: warning: there are no arguments to ‘glGenBuffers’ that depend on a template parameter, so a declaration of ‘glGenBuffers’ must be available [-fpermissive]
Subbucket.cxx:70:31: warning: there are no arguments to ‘glBindBuffer’ that depend on a template parameter, so a declaration of ‘glBindBuffer’ must be available [-fpermissive]
Subbucket.cxx: In member function ‘void VBO<T>::download(GLenum, size_t)’:
Subbucket.cxx:90:31: warning: there are no arguments to ‘glBindBuffer’ that depend on a template parameter, so a declaration of ‘glBindBuffer’ must be available [-fpermissive]
Subbucket.cxx:91:48: warning: there are no arguments to ‘glMapBuffer’ that depend on a template parameter, so a declaration of ‘glMapBuffer’ must be available [-fpermissive]
Subbucket.cxx:97:25: warning: there are no arguments to ‘glUnmapBuffer’ that depend on a template parameter, so a declaration of ‘glUnmapBuffer’ must be available [-fpermissive]
Subbucket.cxx: In member function ‘void VBO<T>::clear(bool)’:
Subbucket.cxx:109:27: warning: there are no arguments to ‘glDeleteBuffers’ that depend on a template parameter, so a declaration of ‘glDeleteBuffers’ must be available [-fpermissive]
Subbucket.cxx: In member function ‘void AttributeVBO::stage()’:
Subbucket.cxx:138:40: error: ‘glBindBuffer’ was not declared in this scope
Anyone know how to fix this?