Symbols must be exported on MinGW
I believe the symbols must not be exported on MSVC only, but on all WIN32 targets:
if(WIN32)
set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
endif(WIN32)
Edited by Michel Zou