[solved] ofxCv on Windows, linker error

I wrote some code using ofxCv on Mac, now I need to port it to Windows but I’m stuck with a linker error.

After generating a VS project with project generator for the ofxCv “example-empty” example and compiling it with VS 2017 linker complains telling something like

unresolved external symbol __std_reverse_trivially_swappable_8 example-empty C:\Development\of_v0.10.1_vs2017_release\addons\ofxCv\example-empty\example-empty\opencv_calib3d310.lib(circlesgrid.obj)

The project has both ofxCv and ofxOpenCv addons, and the error is there both for release and debug builds.

of version is 0.10.1, ofxCv is from master branch of repo

I’d appreciate some help. Thanks!

That seems to be that the compiler is not finding the proper library.

The easiest way to fix it is checking that both addons are in addons.make and the using the project generator to import and update the visual studio solution.

can you try updating vs 2017 ? seems maybe similar to an issue listed here

noticed this:

Updated VS 2017 on my machine and fixed the error, it seems that VS 2017 has binary compatibility issues between its minor releases.

1 Like

That did the trick! Thank you so much :slight_smile: