msteinbeck / tinyspline

ANSI C library for NURBS, B-Splines, and Bézier curves with interfaces for C++, C#, D, Go, Java, Javascript, Lua, Octave, PHP, Python, R, and Ruby.
MIT License
1.21k stars 209 forks source link

Failed to build on Visual Studio 2015 #219

Closed oniliste closed 2 years ago

oniliste commented 2 years ago

please refer the error message below:

D:\Code\tinyspline\src\tinysplinecxx.cxx(999): error C2220: warning treated as error - no 'object' file generated [D:\Code\tinyspline.build\src\tinysplinecxx.vcxproj]

msteinbeck commented 2 years ago

You can disable warnings as errors by setting TINYSPLINE_WARNINGS_AS_ERRORS to OFF:

cmake -DTINYSPLINE_WARNINGS_AS_ERRORS=OFF ..

It looks like MSVC 2015 reports a warning when trying to implicitly convert an int to a bool. I can fix this. However, adding a test to our pipeline might be difficult.

oniliste commented 2 years ago

Thank you! It works.