Hello,
I am trying to run some openGL code from an article that uses the glew library in an OF app.
The code uses glGenFramebuffers function, that is defined in glew.h this way:
#define glGenFramebuffers GLEW_GET_FUN(__glewGenFramebuffers)
and
GLEW_FUN_EXPORT PFNGLGENFRAMEBUFFERSPROC __glewGenFramebuffers;
The OF app includes in its linker settings the static library:
…\libs\glew\lib\win_cb\glew32s.lib
However I get a linking error:
undefined reference to ‘_imp____glewGenFramebuffers’
I am lost about how the linker pass from __glewGenFramebuffers to _imp____glewGenFramebuffers.
How can I make the program to link with function like glGenFramebuffers, glBindFramebuffer, etc.?
Regards.