Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualsamoth

Posted 11 February 2013 - 04:07 AM

When you use GLEW, glEnableVertexAttribArray is a macro that expands to glewEnableVertexAttribArray, which the compiler/linker know as _imp___glewEnableVertexAttribArray -- hence the weird name.

As to why it doesn't work, there are at least two possible (and luckily easy to check/resolve) reasons:

You may have forgotten to link the library (check project settings in your IDE), or you may have gotten GLEW_STATIC wrong (either have it defined and not using a static lib, or using static but forgotten to define it).

The third possible reason is that the lib you use is not compatible with your linker, but that's unlikely (MinGW normally chews both its own and MSCV's libs just fine).

#1samoth

Posted 11 February 2013 - 04:05 AM

When you use GLEW, glEnableVertexAttribArray is a macro that expands to glewEnableVertexAttribArray, which the compiler/linker know as _imp___glewEnableVertexAttribArray -- hence the weird name.

As to why it doesn't work, there are at least two possible (and luckily easy to check/resolve) reasons:

You may have forgotten to link the library (check project settings in your IDE), or you may have gotten GLEW_STATIC wrong (either have it defined and not using a static lib, or using static but forgotten to define it).

PARTNERS