question

Steven Chen avatar image
0 Likes"
Steven Chen asked Steven Chen commented

Failed to compile Module SDK 22.1

Hello,

Recently I re-installed my Visual Studio and found some error while compiling.

After some research I have solved the compile error for SDK 22.0, but not for SDK 22.1.


Here are information about my setup:

Visual Studio 2019.

Windows SDK 8.1 as Module SDK required.

Windows Universal CRT SDK for solving "ctype.h not found" error.


Under my setup I got following errors for Module SDK 22.1. Retarging Windows SDK from 8.1 to latest version also failed with same errors.

module-sdk-221-compling-error.png

FlexSim 22.1.0
module sdk
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Steven Chen commented

Make sure your Visual Studio 2019 is updated to the latest version.

Switch your C++ Language Standard to C++20:

1650376867486.png


1650376867486.png (38.6 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Chen avatar image Steven Chen commented ·

I have the latest Visual Studio 2019 (16.11.13) and switched to C++20, but I got new error.

c2760.png

0 Likes 0 ·
c2760.png (8.5 KiB)
Phil BoBo avatar image Phil BoBo ♦♦ Steven Chen commented ·
Change the Windows SDK Version to "10.0 (latest installed version)". The Windows 8.1 SDK isn't compatible with C++20.
0 Likes 0 ·
Steven Chen avatar image Steven Chen Phil BoBo ♦♦ commented ·
It works, thank you.
0 Likes 0 ·