[gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Stephane Marchesin <stephane.marchesin@xxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Sun, 14 May 2006 17:17:05 +0200
Latimerius wrote:
On Thu, May 11, 2006 at 02:03:02PM -0500, Bob Pendleton wrote:
On Wed, 2006-05-10 at 23:29 +0200, Latimerius wrote:
test.cpp: In function `int main()':
test.cpp:7: error: `glCreateProgram' undeclared (first use this function)
test.cpp:7: error: (Each undeclared identifier is reported only once for
each function it appears in.)
Aren't those compiler errors, not link errors? It looks like the symbol
is not defined in gl.h or glext.h. I would go to /usr/include/GL and
grep to see if glCreateProgram is defined anywhere. If it isn't then I
would assume that I had an old version of the .h files and try to find
new ones. If glxinfo says you have 2.0 then you have 2.0.
I apologize, these *are* compiler, not linker errors. I pasted into my
message wrong output (from a previous compilation when test.cpp didn't
have all the required headers included) and failed to notice before I
sent it.
You should document yourself on the OpenGL extension mechanism. For the
extensions, you have to retrieve these function pointers through some
mechanism before you can use them (using one of the getprocadress calls
like glXGetProcAddressARB or SDL_GL_GetProcAddress depending on what you
use).
Stephane
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius
- References:
- [gameprogrammer] GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Roger D Vargas
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Bob Pendleton
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius
Other related posts:
- » [gameprogrammer] GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- » [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
On Thu, May 11, 2006 at 02:03:02PM -0500, Bob Pendleton wrote:
On Wed, 2006-05-10 at 23:29 +0200, Latimerius wrote:
test.cpp: In function `int main()':Aren't those compiler errors, not link errors? It looks like the symbol
test.cpp:7: error: `glCreateProgram' undeclared (first use this function)
test.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)
is not defined in gl.h or glext.h. I would go to /usr/include/GL and
grep to see if glCreateProgram is defined anywhere. If it isn't then I
would assume that I had an old version of the .h files and try to find
new ones. If glxinfo says you have 2.0 then you have 2.0.
I apologize, these *are* compiler, not linker errors. I pasted into my
message wrong output (from a previous compilation when test.cpp didn't
have all the required headers included) and failed to notice before I
sent it.
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius
- [gameprogrammer] GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Roger D Vargas
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Bob Pendleton
- [gameprogrammer] Re: GL 2.0 on Xorg w/ ATI's proprietary drivers
- From: Latimerius