question

Joe S2 avatar image
0 Likes"
Joe S2 asked Kavika F commented

Failed to compile Module SDK 22

Good Afternoon,

I'm trying to migrate my Flexsim Module from Flexsim 2020.2 to Flexsim 2022 and I ran into this compile error...

1651264278936.png

The line that this code is referring to is this...

1651264329119.png

If I comment out this code the module dll successfully compiles.

1651264507673.png

Do I need this code?

Is it safe to compile without it?

Is there anything I may want to try to compile this code fully.


Thank you,

Joe Szalko

FlexSim 22.0.3
module sdk
1651264278936.png (21.3 KiB)
1651264329119.png (13.8 KiB)
1651264507673.png (38.6 KiB)
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Joe S2, was Phil BoBo's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered

Commenting out a preprocessor warning directive isn't going to be a problem.

The problem is that it is trying to compile that line at all. It should only be trying to compile that line if you are not compiling for Windows. You should have "_WINDOWS" defined in your Preprocessor Definitions:

1651501754681.png


1651501754681.png (251.3 KiB)
5 |100000

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