open-simulation-interface icon indicating copy to clipboard operation
open-simulation-interface copied to clipboard

osi3::InterfaceVersion::descriptor()->file()->options().GetExtension() sometimes causes build error on windows

Open fischerrob opened this issue 3 years ago • 0 comments

I am currently not able to build the following code on windows, while for the linux build works just fine. grafik

The following error message is shown: in function google::protobuf::internal::MessageTypeTraits<osi3::InterfaceVersion>::Get(int, google::protobuf::internal::ExtensionSet const&, osi3::InterfaceVersion const&)': undefined reference to google::protobuf::internal::ExtensionSet::GetMessageA(int, google::protobuf::MessageLite const&) const'

The weird thing about this is that the function "SetVersion" is called multiple times, throughout our program, but only at one place it causes the build error. If I comment out the function call it will build without an issue, even though SetVersion is called at other places with the same arguments. So the function call that leads to the build error seems no different from the other calls.

Used osi version: 3.3.1

fischerrob avatar Jul 28 '22 10:07 fischerrob