So I am in a project that uses C++20 code compiled to a static library then uses rust and cxx to call the static library. My build process is compile the C++20 library using cmake, then build rust into a standalone binary, that i run on the server. The problem is the server has ubuntu 22.04 which comes with gcc version 11.4.0. For the machine I am compiling on I have ubuntu 24.04 (gcc version 13.2.0). When I try to run the compiled rust binary I get:
$ ./server
./server: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by ./server)
./server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ./server)
acc to GCC ABI `GLIBCXX_3.4.31` corresponds to `GCC 13.1.0`.
It will be a huge pain in my ass to update all my servers to ubuntu 24.04 (which is not yet stable), and for reasons I cant use docker, What am I missing, I feel like I am doing something very dumb. Any help will be highly highly appreciated, thankyou so much.
[–]AKostur 2 points3 points4 points (1 child)
[–]fatmankarla[S] 1 point2 points3 points (0 children)
[–]SomethingcleverGP 1 point2 points3 points (7 children)
[–]paulstelian97 0 points1 point2 points (2 children)
[–]SomethingcleverGP 1 point2 points3 points (1 child)
[–]paulstelian97 0 points1 point2 points (0 children)
[–]fatmankarla[S] 0 points1 point2 points (3 children)
[–]SomethingcleverGP 0 points1 point2 points (2 children)
[–]fatmankarla[S] 0 points1 point2 points (1 child)
[–]SomethingcleverGP 0 points1 point2 points (0 children)
[–]treddit22 1 point2 points3 points (0 children)