PDA

View Full Version : glew: undefined reference to `_imp____glewFramebufferTexture2D'



Mixpicles
19th May 2011, 14:37
Hallo,

i want to use Framebufferobjects,
I have glew32.lib
i call glewInit(); all fine
Only when calling
glFramebufferTexture2D( GL_FRAMEBUFFER_EXT,
GL_COLOR_ATTACHMENT0_EXT,
GL_TEXTURE_2D,
fbo_render->texture(),
0);

I get the error mentioned above
I would be very grateful for any hints leading to the solution of this problem
Regards

high_flyer
19th May 2011, 17:15
This is an English speaking forum, please post in English.
It is against the rules of the forum to post in other languages.

Mixpicles
19th May 2011, 19:50
sry, forgot which language I was writing in.

ChrisW67
20th May 2011, 00:10
Include the GLEW library path and library in your link command. If you are using qmake then you want the LIBS variable, to read the qmake manual (http://doc.qt.nokia.com/latest/qmake-project-files.html), and to search this forum for numerous examples (try "external library" or "LIBS").

If you are using some other build system then look in their manuals because this really has nothing to do with Qt.

Mixpicles
20th May 2011, 12:10
Hello, thank you for your reply,

I already have set the path to my glew32.lib.
And the initGlew(); does not throw any error, as it would, had I not set the path.

high_flyer
20th May 2011, 12:22
are 100% sure that the glew headers that you use, and the lib it self have the same version?

Mixpicles
20th May 2011, 13:45
I belive so,

I have copied everything fom the same archive.

high_flyer
20th May 2011, 14:00
maybe you have a corrupt lib.
Try downloading it again, possibly from a source that offers a checksum.
If you are downloading this in a compressed file such a zip or tar ball, it could also happen that the extraction is not done well, resulting in a corrupt file.

Mixpicles
20th May 2011, 15:28
Unfortunately, no better result

ChrisW67
21st May 2011, 12:54
Can you post a link to the actual GLEW file you downloaded and a small example of code that can be built, run, and fails in the manner you describe?

What compiler are you using for GLEW and your application?