ofxClipper errors on visual studio

hello All

I’m trying to compile the basic example of ofxClipper (@bakercp’s version) on Visual Studio, but I’m running into the following errors:

Please can someone tell me what would be causing this/how to fix it?
S

edit:
I took a look at the output log and it has these warning/error lines:

warning MSB8027: Two or more files with the name of clipper.cpp will produce outputs to the same location. This can lead to an incorrect build result. The files involved are …\addons\ofxClipper\libs\clipper\src\cpp\clipper.cpp, …\addons\ofxClipper\libs\ofxClipper\src\Clipper.cpp.

and then later a whole load:

Creating library bin\clipper.lib and object bin\clipper.exp
main.obj : error LNK2001: unresolved external symbol “public: virtual __cdecl ClipperLib::ClipperBase::~ClipperBase(void)” (??1ClipperBase@ClipperLib@@UEAA@XZ)
clipper.obj : error LNK2001: unresolved external symbol “public: virtual __cdecl ClipperLib::ClipperBase::~ClipperBase(void)” (??1ClipperBase@ClipperLib@@UEAA@XZ)
…etc etc
bin\clipper.exe : fatal error LNK1120: 19 unresolved externals

1 Like

ok, solved it.

I renamed the files Clipper.cpp and Clipper.h - figure my PC wasn’t seeing a difference with the capital C - and updated the #include lines.

This works, might be a fix for others too.

S

1 Like

Thank you – ran into the exact same issue, who knows how much time this saved me.

glad to hear it!