Original Post
Hello, I have a funky problem to my eyes. A file is compiling perfect if I use gcc (gcc simpleFBO.c -o lGL -lGLU -lglut) and not at all if I use g++. The given error is: omilla@d5201:~/SVN/GFX/branches/omilla/playground> make g++ simpleFBO.c -o simpleFBO simpleFBO.c: In function ‘void render_redirect()’: simpleFBO.c:124: error: ‘glBindFramebufferEXT’ was not declared in this scope simpleFBO.c: In function ‘int main(int, char**)’: simpleFBO.c:176: error: ‘glGenFramebuffersEXT’ was not declared in this scope simpleFBO.c:182: error: ‘glBindFramebufferEXT’ was not declared in this scope simpleFBO.c:193: error: ‘glFramebufferTexture2DEXT’ was not declared in this scope simpleFBO.c:197: error: ‘glCheckFramebufferStatusEXT’ was not declared in this scope make: *** [simpleFBO] Error 1 I am running a Linux Suse 10 and here are version of compil tools: omilla@d5201:~/SVN/GFX/branches/omilla/playground> gcc -v Using built-in specs. Target: i586-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux Thread model: posix gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) omilla@d5201:~/SVN/GFX/branches/omilla/playground> g++ -v Using built-in specs. Target: i586-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux Thread model: posix gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) I tried changing header inclusion order, took a look at glext.h (where the incriminated funcs are declared) but couldn't find the solution. any idea?