Skip to content

Problems with dynamic linking #592

Closed
@clemenshabedank

Description

@clemenshabedank

Describe the feature

The OSI library must offer the possibility that within a C++ program (one process) two or more different OSI versions can be used simultaneously as dynamic libraries (shared libraries).
This is not possible due to the "Custom Options" [1] in the current OSI version 3.X.X with the used FileOption (see [2]).
and leads to the following runtime error:

[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/extension_set.cc:93] Multiple extension registrations for type "google.protobuf.FileOptions", field number 81000.
unknown file: Failure
C++ exception with description "Multiple extension registrations for type "google.protobuf.FileOptions", field number 81000." thrown in the test body.

[1] https://developers.google.com/protocol-buffers/docs/proto#customoptions
[2]

optional InterfaceVersion current_interface_version = 81000;

Important note: As discussed a reminder for the v4.0 release (not backward compatible). This issue is uploaded by me on behalf of BMW.

@pmai @ThomasNaderBMW FYI

Metadata

Metadata

Labels

DocumentationEverything which impacts the quality of the documentation and guidelines.Performance&PackagingThe Group in the ASAM development project working on improving OSI performance.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions