question

Xuyao X avatar image
0 Likes"
Xuyao X asked Joerg Vogel answered

The module SDK compiling faield with illeagal FlexSim::Variant::asTreeNode.

I download the module_template.zip, extract the module_template folder and then copy the files from the include and the lib directories to the flexsimcontent directory. After that I open the module.sln with Visual Studio 2013. But the module SDK compiling faield with error C2621: "FlexSim::Variant::asTreeNode" illeagal union member. Type "FlexSim::NodeRef" has copy constructor. Types "FlexSim::FlexSimPrivateTypes::String", "FlexSim::FlexSimArray<FlexSim::Variant,Array>" and "FlexSim::Map" meet the same problem.

FlexSim 21.0.2
flexsim 21.0.2module 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

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

Can you try it with a more recently released visual studio version?

· 1
5 |100000

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

Xuyao X avatar image Xuyao X commented ·

Ohhhh~~, it works in Visual Studio 2019. thx. :)

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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