Extensions dont work under linux!

Ok, the following lines:

PFNGLMULTITEXCOORD1DARBPROC glMultiTexCoord1dARB = NULL;
PFNGLMULTITEXCOORD1DVARBPROC glMultiTexCoord1dvARB = NULL;
PFNGLMULTITEXCOORD1FARBPROC glMultiTexCoord1fARB = NULL;
PFNGLMULTITEXCOORD1FVARBPROC glMultiTexCoord1fvARB = NULL;
PFNGLMULTITEXCOORD1IARBPROC glMultiTexCoord1iARB = NULL;
PFNGLMULTITEXCOORD1IVARBPROC glMultiTexCoord1ivARB = NULL;
PFNGLMULTITEXCOORD1SARBPROC glMultiTexCoord1sARB = NULL;
PFNGLMULTITEXCOORD1SVARBPROC glMultiTexCoord1svARB = NULL;

Cause “Syntax error before =” What am i doing wrong?

You don’t give exact syntax errors so it’s hard to say. Two thoughts of what the error could be are:

  1. You don’t have the function pointer typedefs defined somewhere before those lines.

  2. Your GL headers for Linux may already have prototypes for those functions, so when you try to add those you get a duplicate names.

“multitex.cpp:30: syntax error before ‘=’”

Originally posted by HanC:
[b]Ok, the following lines:

PFNGLMULTITEXCOORD1DARBPROC glMultiTexCoord1dARB = NULL;

Cause “Syntax error before =” What am i doing wrong?[/b]

Which headers do you include? Do a ‘grep PFNGLMULTITEXCOORD1DARBPROC’ on the headers in your GL header directory and make sure that you include a .h file with the needed prototypes. If you can’t find this symbol, grep for glMultiTexCoord and look whether this is defined and which type it has.

(Note that there is a library called ‘glux’ which could make using extensions in Linux easier for you.)

Yay! I got it working!

You can also use SDL to load extentions under linux, I believe…