GitHub - NTNU-IHB/FMI4cpp: FMI 2.0 implementation written in modern C++.
6 comments · 86% upvoted · source · other discussions
6 comments · 86% upvoted · source · other discussions
Hi, I was wondering if someone knew how to properly install this?
Cant seem to get it working with the installation guide on the git page.
Which error are you getting? How are you installing dependencies? If you are using conda-forge or vcpkg, you can directly install the fmi4cpp package available there.
Following this guide https://github.com/greenwoodms06/Instructions/blob/master/Install_Win_FMI4cpp.md
I get the error message while trying to cmake FMI4cpp " Could NOT find PugiXML", I want to use it with cpp is nit sure how installing it using conda-forge would work.
Never used Conan before so not sure how to do that either.
I wonder what is the purpose of using
autoin this line:If you specify the type in the comment, why not using it stratight away to declare your variable? Why not the following?
elraulii 1 points · May 2019
See "auto to stick" https://www.fluentcpp.com/2018/09/28/auto-stick-changing-style/
laht1 1 points · May 2019
Author here. I like
auto. Especially since my main language nowadays is Kotlin. Honestly, I used it here because it looks better. The comment is there because it's a readme, and I wanted to make it clear for readers what the returned type was. In regular code it would be given by the context. Withfmi4cpp, anfmureturns amodel_descriptionwhile acs_fmuandme_fmureturns specializedmodel_descriptioninstances with additional data.