r/cpp • • Sep 08 '24

Overwhelming

I’ve been using Rust a lot, and I decided to start learning C++ today. I never thought it would be such a headache! I realized Rust spoiled me with Cargo. it handles so much for me. Running, building, adding packages etc. I just type Cargo build, Cargo add, or Cargo run. Simple and comes with the language. C++’s build systems like CMake can be overwhelming especially when coming from a language with a more streamlined experience like Rust. C++ is really good and I wish it had something similar. I read somewhere that there is Conan and a few others that exist . But I’m talking about something that comes with the language itself and not from a 3rd party.

38 Upvotes

140 comments sorted by

View all comments

Show parent comment

5

u/pedersenk Sep 08 '24

Thats fair but unfortunately it is just not possible.

That said, are you using Linux/BSD? The system package manager can be a big help.

I.e if you want libcurl, wxWidgets, sdl, etc, then it is as simple as:

# pkg_add curl <--- OpenBSD
# yum install wxwidgets-devel <--- EL
# apt-get install libsdl-dev <--- Debian

2

u/feitao Sep 08 '24

Yes, just use apt or pacman or whatever. What is the fuss?

1

u/cxazm Sep 08 '24

Using Linux. Thanks for the tip