irwir / CxImage

Origin: https://sourceforge.net/projects/cximage/
4 stars 2 forks source link

Compiling this lib #1

Open fabianoriccardi opened 3 years ago

fabianoriccardi commented 3 years ago

Hi irwin, if I try to compile this library in VC2019 I get the following error:

The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

However If I retarget solution to v142, I get the following error:

'int_fast16_t': redefinition; different basic types cximage C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29333\include\stdint.h 37

Did you found this problems too? How did you solved?

irwir commented 3 years ago

Hi @fabiuz7 Removing library's sdint.h files should help to compile.

Hi irwin,

Who is irwin?

fabianoriccardi commented 3 years ago

Who is irwin?

I meant irwir, I misspelled your name, sorry!

Thanks for the answer. In Platform Toolset I have three options: v142, v141 and v141_xp. I tried all them, but only v141_xp worked. Which do you use?

EDIT: I messed up something, so I redownloaded the v7.02 Lite and now it compiles against v142.

fabianoriccardi commented 3 years ago

Another question: which Window SDK version do you use? By default VS set "latest version". img2021-01-18 220339