DLL Maker Error

DLL Maker Error

arunTTT2P
Advisor Advisor
1,794 Views
7 Replies
Message 1 of 8

DLL Maker Error

arunTTT2P
Advisor
Advisor

[ FlexSim 19.1.1 ]

Hi,

Building DLL on the FlexSim DLL maker in visual studio 2017 brings down the following error attached(I didn't write any new functions, only default ones). It notifies to install v120_xp toolset or retargeting the solution. Even after doing this, the same message appears.

20962-error-disp.png

Any idea ? Or Is it better to use visual studio express 2013 or 2015? Or Am I missing something?

Regards,

Arun KR

Accepted solutions (1)
1,795 Views
7 Replies
Replies (7)
Message 2 of 8

SCHamoen
Advisor
Advisor

@Arun KR I do see in the screenshot you are compiling for 32 bits. Is that correct?

0 Likes
Message 3 of 8

arunTTT2P
Advisor
Advisor
0 Likes
Message 4 of 8

mischa_spelt
Advisor
Advisor
Accepted solution

It should be enough to change the project toolset to one that you do have installed. For Visual Studio 2017 this is the v141. You can set it in the project properties:

20976-toolset.png

Be aware that this change is saved in the .vcxproj so if you check this in to version control the next user to open it in Visual Studio 2013 will have the same issue in reverse.

Message 5 of 8

arunTTT2P
Advisor
Advisor

Thanks Misha

0 Likes
Message 6 of 8

arunTTT2P
Advisor
Advisor

I am facing some issues while building DLL with visual studio 2019 version.

Here's the error message.

21058-v2019.png

Anyone having the same issues ?

0 Likes
Message 7 of 8

philboboADSK
Autodesk
Autodesk

I don't have VS2019 installed to test it (we're still using VS2017), but you can change declaration.h in your solution.

Change how it defines fabs() and round() so that it compiles. Or just take out the declaration of fabs() and round() so that it doesn't try to connect to versions of those functions.

Those function declarations are there in order to maximize compatibility with FlexScript functions (by making all the FlexSim commands available). If you aren't using fabs() or round(), you don't need to define them.

You can change your declaration.h in the DLL Maker to suit your needs for the DLL you are trying to build.



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 8 of 8

mischa_spelt
Advisor
Advisor

I've compiled a few modules in VS2019 and did not see this issue. So there is more to it than just the upgrade from '17 to '19.

0 Likes