Beh, that’s because we’ve never tested this code on Windows.
I just looked at panda/metalibs/pandagles2/Sources.p and found this:
#define BUILDING_DLL BUILDING_PANDAGLES
I think that should be changed to this:
#define BUILDING_DLL BUILDING_PANDAGLES2
Could you try it with this change?