There are only a few changes needed. Some functions have to be exported. Therefore the attribute "__declspec(dllexport)" has to be add to some of the function definitions and their prototypes. The functions are:
For example for the function gpc_free_polygon you have to change
void gpc_free_polygon(gpc_polygon *p) { .... }to
__declspec(dllexport) void gpc_free_polygon(gpc_polygon *p) { ... }in gpc.c and in gpc.h you have to change the line
void gpc_free_polygon (gpc_polygon *polygon);to
__declspec(dllexport) void gpc_free_polygon (gpc_polygon *polygon);
For Gpc Version 2.31 this has been already done in the files gpc.c and gpc.h contained in the GpcWrapper.zip file.
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\binAfterwards you can generate the dll simply by calling
cl /LD /MD gpc.cIn the File compile.cmd this has been already done. Maybe the Path to vcvars32.bat has to be changed.