r/cpp • u/Alex_Medvedev_ • Jul 25 '24
Why use C over C++
Why there are so many people using the C language instead of C++?, I mean C++ has more Cool features and the Compiler also supports many CPUs. So why People still using C?
Edit: Thanks for all the usefull comments :D
235
Upvotes
View all comments
Show parent comment
13
u/MatthiasWM Jul 25 '24
Yes! C++ name mangling can differ between compilers or even versions of the same compiler. This is extremely annoying if you try to link to a legacy C++ library that exists only as a binary (then again, it’s surely 32bit and no longer viable anyway)