Hello, I ran into an interesting problem while trying to implement a cross platform https post from c++ add-in.
Using this library: https://github.com/yhirose/cpp-httplib (it uses openssl as a dependency) I got it working on windows. However when I moved to installing it on mac, I ran into a problem. The post does not work (crashes) when running it from under Fusion, as an add-in. However when running the same code from an executable it works just fine.
Any ideas what fusion could be doing to change the behavior?
Any suggestions how to best go about this would be appreciated.
Hi,
As stated on the github web page of cpp-httplib, it is a header-only library. I had also massive problems with header-only libraries used in Fusion 360 add-ins. My solution is to use static. Some header-only have a static variant too.
For http requests I use libcurl. Works fine with WINDOWS and macOS.
Jiri
Can't find what you're looking for? Ask the community or share your knowledge.