question

Hao Zhou avatar image
0 Likes"
Hao Zhou asked Mischa Spelt commented

ObjectDataType FlexScript interface functions cannot be compiled in SDK

For example, I am trying to replace deprecated command setloc() with setLocation() in my module. I have a class that inherits from FlexSimObject. In one of its member functions, I am trying to call

  1. this->setLocation(0.0, 0.0, 0.0);

But the compiler shows error:

  1. error LNK2019: unresolved external symbol

How to fix this problem? Engine version is 17.1 beta.

BTW, just notice that not only this function, all other ObjectDataType functions or properties such as getLocation(), setSize(), location, rotation, etc. cannot be compiled properly if I call them in my module.

Thanks, Hao

FlexSim (other - please specify)
FlexSim (other)
module sdk
· 10
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
1 Like"
Jordan Johnson answered Mischa Spelt commented

I updated the header files and libs in the module SDK. The new headers and libs should allow you to use the setLocation() method. I had forgotten to mark those functions to be accessible (with the engine_export macro).

· 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.