question

yexioamu avatar image
0 Likes"
yexioamu asked Julie Weller commented

Error LNK2019 when using dll maker

When i implement some function which build in dll release mode, occur a error liked this :

error LNK2019: Unresolved external symbol "__declspec(dllimport) public: __cdecl FlexSim::Map::~Map(void)" (__imp_??1Map@FlexSim@@QEAA@XZ)

what should i do fo it?

FlexSim 21.2.4
dll makerdll error
· 8
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 ·

Microsoft's documentation states that "LNK2019 can occur when a declaration exists in a header file, but no matching definition is implemented. For member functions or static data members, the implementation must include the class scope selector." So, it looks like there's a FlexSim::Map::~Map(void) defined in the header somewhere, but no implementation?

Could you provide more information like what you're implementing and where you're implementing it? Thank you.

1 Like 1 ·
Kavika F avatar image Kavika F ♦ Kavika F ♦ commented ·
0 Likes 0 ·
yexioamu avatar image yexioamu Kavika F ♦ commented ·

Sorry, I will show you tomorrow, I am on a business trip.

1 Like 1 ·
Show more comments
Julie Weller avatar image Julie Weller commented ·

Hi @yexioamu, was Jordan Johnson'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Kavika F commented

The DLL Maker can only access a limited set of types and functions. The Variant class and Map class are not accessible from the DLL Maker.

If you use the Module SDK, you can access both those classes, as well as many others.

· 2
5 |100000

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

yexioamu avatar image yexioamu commented ·
When I built it in debug model,it did’t occur the error
0 Likes 0 ·
Kavika F avatar image Kavika F ♦ yexioamu commented ·
@yexioamu, can you share with us what you're trying to do? Maybe that will help us try to replicate your error. Thank you.
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.