M
M
MechanicZelenyy2018-12-17 15:27:53
linux
MechanicZelenyy, 2018-12-17 15:27:53

How to use non-system libstdc++ when building with cmake?

Good afternoon.
The problem is, the libstdc++ system library does not support a number of GLIBCXX and CXXABI needed to build the program, since the system library update is not available, I installed with conda a more recent library (in the type directory ~/miniconda3/lib), in which everything needs to be present (checked with

strings ~/miniconda3/lib/libstdc++.so.6 | grep LIBCXX
). How now to force cmake to use this particular library, and not the system one?
I added the path ~/miniconda3/libto the LD_LIBRARY_PATH and RPATH variables, but it doesn't help.
UPD: It should be noted that I already solved this problem six months ago, but then I didn’t write down the solution and now I don’t remember at all what I was doing then (I remember that I stumbled upon the solution completely by accident).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2018-12-17
@POS_troi

For a long time already they came up with a solution to problems with dependencies and the simplest of them is "Docker" and a bunch of other solutions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question