cppfw / svgren

:camera: SVG rendering library in C++
MIT License
206 stars 41 forks source link

VS2017 v141 toolset link failed #95

Closed gaoqiangz closed 3 years ago

gaoqiangz commented 3 years ago

图片 图片 I was upgrade from 0.4.49,my project still need support Windows XP...

igagis commented 3 years ago

I didn't put much efforts in supporting v141 tools lately. But I will have a look at what can be done. I think it should be possible to fix it.

igagis commented 3 years ago

Unfortunately, v141 tools have limited support of C++17, while the lib uses C++17 features missing from v141 tools.

my project still need support Windows XP

Do you mean that you need your app to work on windows XP or do you mean that Visual studio has to be run in Windows XP?

I think you can move to using v142 tools, but compile your project for older windows.

gaoqiangz commented 3 years ago

my project still need support Windows XP

It means that the EXE binary file of the project needs to run on Windows XP. As far as I know, the v142 tool no longer supports XP.

Unfortunately, v141 tools have limited support of C++17, while the lib uses C++17 features missing from v141 tools.

In addition, tools and language standards shouldn't be related, right? what limit are you referring to? https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-160

igagis commented 3 years ago

In addition, tools and language standards shouldn't be related, right?

this is true unless we are talking about Microsoft technologies, unfortunately... :(.

According to https://docs.microsoft.com/en-us/cpp/build/configuring-programs-for-windows-xp?view=msvc-160 in order to build for Windows XP, one needs v141_xp tools which I did never support in svgren.

I will try to release svgren version for v141 tools as it was before.

igagis commented 3 years ago

I have added v141 build to svgren version 0.5.20. Do not forget to update all dependency libraries as well to latest versions.

But, please keep in mind that v141 support can be dropped at any moment. So if you need Windows XP builds, I'd recommend you to move to using mingw compiler from msys2, I provide svgren packages for msys2 as well.

gaoqiangz commented 3 years ago

Thanks a lot!