The error in your title and in your diagram are completely different. The first error, in your title is the decorated DLL export name and the second one is for a __stdcall
function. For whatever reason, the import stub seems to be trying to resolve the function address from your application rather than the DLL.
Perhaps you did not properly define dllexport
behavior when you built your DLL or dllimport
when linking against it? GLEW uses the pre-processor definition: GLEW_BUILD
for this purpose.
In any event, using the static linking glew library will definitely solve this issue, though I cannot say why it is happening for sure.
Link against glew32s
and add -DGLEW_STATIC
to your Makefile.