I am recompiling some C++ code on Linux Mint which makes use of libboost. The code worked fine before an upgrade from Mint 18 to Mint 19.3. Since then, I can get the code to compile, but during execution it fails with an error generated by one or more calls to boost::filesytem::create_directories
Searching the 'net, it seemed that the problem could be due to library version incompatibilities and sure enough while 1.65 is installed, there appear to be libraries from 1.58 running around, in this folder for example /usr/lib/x86_64-linux-gnu (or something like that).
When I try a 'net solution like sudo rm -f /usr/lib/x86_64-linux-gnu/libboost_* (and then a reinstall) or sudo rm -f /usr/lib/x86_64-linux-gnu/libboost_*.so.1.5.8.0
nothing changes (ie the files seem to remain as do the execution errors).
When I rerun a copy of the compiled code from before, the code doesn't fail.
Can anyone suggest how I can fix this problem? The code I am compiling is massive and not my own, so I don't know where to start in changing the function call. In fact, I don't think that is the problem. What I think I need to know is how to wipe out the remnants of the older install and/or repoint everything to the latest install.
FWIW, I've tried the advice here Uninstall boost and install another version and it doesn't seem to move me along.