MSVC cannot build glib-compile-resource's output resource file
Submitted by mengxi
Link to original bug (#773485)
Description
Using glib-compile-resource to compile resource.cpp and resource.h under Windows 7 (C:\msys64\mingw32\bin\glib-compile-resources.exe --target=resource.cpp --generate-source resource.xml and C:\msys64\mingw32\bin\glib-compile-resources.exe --target=resource.h --generate-header resource.xml)
When trying to compile applications with the resulting resource.cpp, the compiler (MSVC 14) gives error fatal error LNK1120: 2 unresolved externals resource.obj : error LNK2001: unresolved external symbol _resource_constructor_wrapper resource.obj : error LNK2001: unresolved external symbol _resource_destructor_constructor
There is something wrong with preprocessor definitions for c constructor functions for MSVC 14