Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Is anybody using boost c++ lib in their addin?

chetmurphy
Contributor

Is anybody using boost c++ lib in their addin?

chetmurphy
Contributor
Contributor

I had been using boost (version 172) and then decided to switch to the vcpkg manager and then I installed 175 along with my other libs.

 

Alas, my dll failed to load. Actually it loaded and immediately unloaded without even running any of my code. No errors, no nothing, even with windbg. I think that I have traced it down to boost version 175.

 

It also looks like Fusion is also using boost. At this point I still don't know the reason for this behavior with 175.

0 Likes
Reply
372 Views
4 Replies
Replies (4)

-pezi-
Enthusiast
Enthusiast
Hi,

I can't advice for you, only I have the same experiece as you . Although I don't use boost library, so when try add some other c++ library (e.g. curl, json) assist vcpkg into addIn for Fusion 360, is behavior the addIn are the same as your experiences. When I use in console apllication additional c++ library, all is alright. I'm use MS Visual Studio Profesional 2019 with latests update. C++ library I instal as x64-windows.
1 Like

chetmurphy
Contributor
Contributor

I don't think it is vcpkg per se since most of my libs are using it. Boost seems to be an exception or there is a version conflict so I'm using nuget for boost.v172.

1 Like

-pezi-
Enthusiast
Enthusiast

Ok, I started using vcpkg few months ago. If there isn't mistake in vpckg, can it be in settings of project itself (which is generated from Fusion360)? Do you do any changes in settings of project for correct functionality with boost library? And last question. Have you created new addIn for Fusion with some library which is integrated by vcpkg during the last three months?

0 Likes

chetmurphy
Contributor
Contributor

The only setting that I'm using when installing is the triplet x64-windows. 

 

vcpkg install <pkg>: x64-windows

 

For boost, I'm using 172 that is installed using NuGet.

 

I'm still very much in the development phase and have not tried building a release version.

0 Likes