🔒 Locked
glBindProgramARB?!?!? undefined?!?!?
Advertisement
Original Post
hi all,
i have a puzzling problem:
i am tring to write a small vertex/fragment shader, so i am using the *_PROGRAM_ARB stuff.
i included the glext.h file (and i downloaded the latest release from the oss site). Still when i tri to compile&link my program it keeps me sayng:
[enrico@client4 render]$ make
g++ -g -c eptagon.cpp
eptagon.cpp: In function `GLuint load_program(char*, unsigned int)'':
eptagon.cpp:94: `GL_FRAGMENT_PROGRAM_ARB'' undeclared (first use this function)
eptagon.cpp:94: (Each undeclared identifier is reported only once for each
function it appears in.)
eptagon.cpp:98: `glGenProgramsARB'' undeclared (first use this function)
eptagon.cpp:100: `glBindProgramARB'' undeclared (first use this function)
eptagon.cpp:103: `glProgramStringARB'' undeclared (first use this function)
make: *** [eptagon.o] Error 1
now where am i wrong? All glSomethingARB functions should be declared/defined in glext.h, right? What else am I missing? I am including glut.h too (and just to be safe gl.h and glu.h).
If anyone has some hints, lemme know. Thanks for the help, bye
I''m guessing you didn''t declare the function pointers or obtain pointers to the functions. Check the FAQ for an explanation of extension loading, or use GLee (see sig).
____________________________________________________________
www.elf-stone.com | Automated GL Extension Loading: GLee 2.00 for Win32 and Linux
____________________________________________________________
www.elf-stone.com | Automated GL Extension Loading: GLee 2.00 for Win32 and Linux
hi guys,
i post this just to avoid you loosing a lot of time like i did.
You have to define the entry points for the procedures just if u are working under windows.
If u are writing code under linux, like I am doing, you simply have to define
#define GL_GLEXT_PROTOTYPES
before any opengl include. After that u can succesfully compile and link any file including glext.h.
Just wanted to let you know...
bye
i post this just to avoid you loosing a lot of time like i did.
You have to define the entry points for the procedures just if u are working under windows.
If u are writing code under linux, like I am doing, you simply have to define
#define GL_GLEXT_PROTOTYPES
before any opengl include. After that u can succesfully compile and link any file including glext.h.
Just wanted to let you know...
bye
Ah, I''d assumed you were using Windows. Using GLee instead of glext.h, glxext.h etc would still have solved your problem though
.
hiya bunny,
i gave a look at glee,
nice work indeed.
As for now i am just doin'' silly little programs using very basic extensions, so no need for such a complex library...
Anyway for more serious works i''ll consider using it.
--> serious work done in spare time, as i am working for a software house, and i am not really sure u want me to use your work in a commercial...
Anyway when i''ll set up my big gaming corporation, i''ll give u proper credit
bye!
i gave a look at glee,
nice work indeed.
As for now i am just doin'' silly little programs using very basic extensions, so no need for such a complex library...
Anyway for more serious works i''ll consider using it.
--> serious work done in spare time, as i am working for a software house, and i am not really sure u want me to use your work in a commercial...
Anyway when i''ll set up my big gaming corporation, i''ll give u proper credit
bye!
It's really not complex to use, which is why it's ideal for small projects. You just call GLeeInit(), and then from that point you have access to all the extensions your hardware supports. No need to mess around with extension loading anymore.
It has a modified BSD license, so it's free for anyone to use. Commercial or otherwise.
Go on, use it. You know you want to.
</sales pitch>
[edited by - benjamin bunny on January 14, 2004 12:01:16 PM]
quote:
--> serious work done in spare time, as i am working for a software house, and i am not really sure u want me to use your work in a commercial...
It has a modified BSD license, so it's free for anyone to use. Commercial or otherwise.
Go on, use it. You know you want to.
</sales pitch>
[edited by - benjamin bunny on January 14, 2004 12:01:16 PM]
damn drug dealers...
the fisrt one is always free uh?
hehe by the way thanks
i''ll give it a try tomorrow...
now in italy is almost 18... so
home sweet home.
c ya
Gunslinger
the fisrt one is always free uh?
hehe by the way thanks
i''ll give it a try tomorrow...
now in italy is almost 18... so
home sweet home.
c ya
Gunslinger
You know you''ve made the right choice
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement