C++ project compilation

Anonymous
663 Views
4 Replies
Message 1 of 5

C++ project compilation

Anonymous
Not applicable

I have created an addin that works fine on my Win10 computer but does not load on Win7 machines. I have downloaded Visual Studio on my other Win7 computer, build the addin there and it works on that particular computer and Win10 but not on other Win7 computers. What am I missing?

0 Likes
Accepted solutions (1)
664 Views
4 Replies
Replies (4)
Message 2 of 5

ekinsb
Alumni
Alumni

Is your project using some other libraries that maybe aren't on the machines where it's not working?  Possibly they were installed when you installed Visual Studio and that's why it works on the machines where you compiled it. That's my first guess.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for your reply. I tried to find the missing link and I finally found what I was doing wrong!

I wasn`t aware of platform toolset option importance. I have already instaled VS 2015 and 2013 but both do not have the default v110 platform toolset so the addin project is automatically uptaded to v140. I didn`t care about that fact because the dialog box with upgrade info has no options. The addin can be loaded on my computer then, but not on the others.

 

Finally I compiled the project on my old laptop with VS 2008 and 2013 installed where I had the v110 toolset available and the addin seems to work regardless of computer now.

0 Likes
Message 4 of 5

Anonymous
Not applicable
Accepted solution

Searching through the .vcxproj I found I was wrong (accidentaly set different toolsets for release and debug) and the appropriate PlatformToolset is v120

0 Likes
Message 5 of 5

ekinsb
Alumni
Alumni

Thanks for letting us know you were able to resolve the issue.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes