PDA

View Full Version : Extensions dont work under linux!



04-04-2003, 09:44 AM
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?

Deiussum
04-04-2003, 10:08 AM
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.

04-05-2003, 12:04 AM
"multitex.cpp:30: syntax error before '='"

phlucas
04-05-2003, 01:32 AM
Originally posted by HanC:
Ok, the following lines:

PFNGLMULTITEXCOORD1DARBPROC glMultiTexCoord1dARB = NULL;

Cause "Syntax error before =" What am i doing wrong?

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.)

04-05-2003, 03:56 AM
Yay! I got it working!

04-09-2003, 07:39 AM
You can also use SDL to load extentions under linux, I believe..