You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be possible to check correct C++ runtime library version during compilation using C++ preprocessor. For example, runtime library version is defined in zserio/CppRuntimeVersion.h header. This runtime library version could be checked using C++ preprocessor in each generated header:
#include <zserio/CppRuntimeVersion.h>
#if CPP_EXTENSION_RUNTIME_VERSION != 2011000
#error Version mismatch between zserio compiler and zserio runtime library!
#error Please update your runtime library to have the same version as zserio compiler.
#endif
Such solution will avoid unintentionally usage of incompatible zserio runtime library in C++.
The text was updated successfully, but these errors were encountered:
mikir
changed the title
Check correct runtime library version in C++ during compilation
Check correct C++ runtime library version during compilation
Sep 4, 2023
It would be possible to check correct C++ runtime library version during compilation using C++ preprocessor. For example, runtime library version is defined in
zserio/CppRuntimeVersion.h
header. This runtime library version could be checked using C++ preprocessor in each generated header:Such solution will avoid unintentionally usage of incompatible zserio runtime library in C++.
The text was updated successfully, but these errors were encountered: