NTNU-IHB / FMI4cpp

FMI 2.0 implementation written in modern C++.
MIT License
93 stars 34 forks source link

encounter some syntax error in my project #124

Closed mycrocs closed 2 years ago

mycrocs commented 2 years ago

Hi, When i use fmi4cpp in my project, it encounter some syntax error. image

These errors are in the code below, but i cannot see anything wrong. image

I am using VS2017 and set language standard C++17. I install the library from vcpkg.

markaren commented 2 years ago

I install the library from vcpkg.

Oh, that version is wildly outdated and quite different from what you see when browsing the code on github.

I suspect the issue is a missing NO_MIN_MAX define, though. But using the vcpkg version is ill advised. It will not be updated and is years old.

mycrocs commented 2 years ago

Thanks, i will try.

markaren commented 2 years ago

Someone has actually updated the vcpkg port lately. Then it isn't as outdated as I thought. Your issue is still probably with NO_MIN_MAX, though.