TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25062 18
Is there a C++ "venv" equivalent?

Python have venv, Rust have cargo, Node have nvm. You clone a repo, run one command, you're in a reproducible environment.

Is there a viable alternative for C++? I don't think standard will ever bother with this and to their defence, not sure if that is even possible.

I've tried Conan, vcpkg, various CMake setups. They're not bad tools, but there's no standard "activation" ritual. No isolated-per-project environment that pins compiler + deps + toolchain together. No single lockfile that means the same thing on my machine, my colleague's machine, and CI. What I keep wanting is something like: "cppenv activate" and suddenly I'm in a clean, isolated, reproducible build environment for that project. Exit it, and my system is untouched. Share a lockfile, and a teammate gets the exact same thing.

How are you handling reproducible build/development environments?

https://redd.it/1sw2x3z
@r_cpp
Reddit From the cpp community on Reddit Explore this post and more from the cpp community
More from @r_cpp
  1. Oct 4, 2026Comparing exception behavior of magic statics, std::call_once, and std::async https://devb…
  2. Oct 4, 2026The complement of true is true, except when it's false https://dryperspective.github.io/po…
  3. Oct 4, 2026Grooves in Software - Andreas Wagner - [https://youtu.be/8XtZi4HTrcA](https://youtu.be/8Xt…
  4. Oct 4, 2026New C++ Conference Videos Released This Month - September 2026 (Updated To Include Videos…
  5. Oct 4, 2026Żmij 1.2 "the proof is in the printf" released with full to_chars implementation, formal v…
  6. Oct 4, 2026Why we should standardise on CPS To enable any collaboration in the industry, some "social…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →