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
This is inspired by similar API in GNU libc, Qt, GTK, .... and enables a program using jsoncpp to display the version information of the runtime linked shared library, or perhaps to check at runtime that the version of the shared library is compatible with what the program expects.
We are using jsoncpp in the RefPerSys open source inference engine project.
On Tue, Feb 27, 2024 at 10:24 Basile Starynkevitch ***@***.***> wrote:
Most Linux programs want a --version program option. This is suggested in GNU
coding standards <https://www.gnu.org/prep/standards/html_node/index.html>
.
The jsoncpp library already gives the preprocessor JSONCPP_VERSION_STRING.
It would be useful to add some runtime function giving the same
information (since we have a `/usr/lib/x86_64-linux-gnu/libjsoncpp.so
shared library)
My suggestion would be to add some static member in that shared library
const char*Json::Features::version() { return JSONCPP_VERSION_STRING; };
This is inspired by similar API in GNU libc, Qt, GTK, .... and enables a
program using jsoncpp to display the version information of the runtime
linked shared library
—
Reply to this email directly, view it on GitHub
<#1531>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBWORHQG2QFRRXUOXJ6FNTYVWQ47AVCNFSM6AAAAABD3XKJ7GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TMMBYG44DKNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Most Linux programs want a
--version
program option. This is suggested in GNU coding standards.The jsoncpp library already gives the preprocessor
JSONCPP_VERSION_STRING
.It would be useful to add some runtime function giving the same information (since we have a
/usr/lib/x86_64-linux-gnu/libjsoncpp.so
shared library)My suggestion would be to add some static member in that shared library
This is inspired by similar API in GNU libc, Qt, GTK, .... and enables a program using jsoncpp to display the version information of the runtime linked shared library, or perhaps to check at runtime that the version of the shared library is compatible with what the program expects.
We are using jsoncpp in the RefPerSys open source inference engine project.
Regards from Basile Starynkevitch in France.
The text was updated successfully, but these errors were encountered: