3 ms·
What about supporting multiple versions of libraries at a computer? They all support it: npm, rvm, virtualenv, cargo, golang, python, maven and etc. A very com
by aprdm 6y ago
What about supporting multiple versions of libraries at a computer? They all support it: npm, rvm, virtualenv, cargo, golang, python, maven and etc.
A very common use case is to use some newer version of something than what shipped with the OS but at the same time you don't want to potentially cause instability in the OS...
Or you know, developing multiple projects w/ different versions from a single OS.
Also in case I really want to do it, I have to go to some obscure website download some payload and read some build instructions to see how to best integrate to my messy CMake/Make system...
All of it could literally be replaced by something akin to
cppvenv create myproject
cppvenv --depend-on grpc-1.40 zeromq json
cppvenv build
- otabdeveloper4 6y agoNix does what you want.
- arximboldi 6y agoYes, I love Nix. The only caveat is that it does not work on Windows...
- qppo 6y agoYou would have to go to some obscure website to download some payload and read build instructions to see how to beat integrate it with your new cppenv program instead. That's the problem to solve, C++ is old and most of it written before those solutions existed, and most of it doesn't use the same set of tools. Like I said, I don't think this isn't a problem or that a solution wouldn't be nice. It's just not functionally different from the myriad of existing solutions.
- dkersten 6y agoYou edit your generated makefile or tweak the autoconf (or whatever you used) config to point at a specific version of the library, I guess.