question

Alessio Merlo avatar image
0 Likes"
Alessio Merlo asked Jordan Johnson answered

Header file issue in declaration.h

I am developing a module in 17.0, but I cannot compile due to the line 770 of code in declaration.h:

engine_export Variant listpull(TreeNode* listNode, TreeNode* cachedQuery, int requestNum = 1, int requireNum = 1, const Variant& puller = Variant(), const Variant& partitionId = Variant(), int flags = 0);

The issue depends on the type of parameters requestNum and requireNum which are int, but in the list they are defined like double (you can find definition in file List.h at row 565)

engine_export Variant listpull(TreeNode* listNode, TreeNode* cachedQuery, double requestNum = 1, double requireNum = 1, const Variant& puller = Variant(), const Variant& partitionID = Variant(), int flags = 0);

To compile I change the declaration.h file and everything works. Are there side effects? Or simply, is the error dued to a missing copy and paste?

Thanks for the support.

FlexSim 17.0.3
listmodule sdk header filesheader files
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

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

Sounds like we need to double check the module SDK. The 17.0 engine defines those parameters as doubles. If declaration.h has them as int, then it needs to be corrected.

5 |100000

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

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.