That example is incomplete. You don’t provide the Makefile and/or
instructions as to how you compiled and linked your code.
From merely looking at the source all seems fine.
The commands i used to create the DLL :
Everything builds without a Compiler Error.
Then when starting test.exe i get an error dialog :
Even when i only use MOD_Init and MOD_Quit in my main
function, i get this error.