4 ms·
Linux gives you control. Compare compiling C++ code with Visual Studio vs. gcc. Yes, it is easier to get started with VS but you don't have as much control. Wit
by bjourne 9y ago
Linux gives you control. Compare compiling C++ code with Visual Studio vs. gcc. Yes, it is easier to get started with VS but you don't have as much control. With gcc (and my build tool of choice) I can control every step of the compilation and linking process.
It's "learning what's under the hood" - which I guess is an expression that comes from auto mechanics. To really learn how cars work you need to open the hood and interact with the engine.
- badpun 9y agoYou can use Microsoft compiler from command line as well. Some people do, and only jump into VS for debugging. Linux, on the other hand, does not provide a comparable debugging experience.
- jetti 9y ago>Compare compiling C++ code with Visual Studio vs. gcc. That is not a valid comparison as Visual Studio is an IDE and gcc is the compiler. It would be no different if you were using CLion from Jetbrains on Linux to do C/C++ work. The compiling would be handled all through the IDE. You are more than able to get down and handle building C++ from command line by using cl
- bjourne 9y agoI know you can use cl.exe directly, but it is not the same. For example, you can't even suppress its output completely. https://social.msdn.microsoft.com/Forums/vstudio/en-US/9eabed6b-8bae-4c86-a8d8-c7fc2c8e6ed2/clexe-how-to-suppress-filenamec-and-creating-library-filelib-and-object-fileexp?forum=vclanguage https://social.msdn.microsoft.com/Forums/vstudio/en-US/9eabe...
- planteen 9y agoAs much as I dislike MSVC, I'm still not sure that's a fair comparison. I've used cl.exe in large, complex makefiles to build programs that could also change CC and CXX to gcc or clang. And as far as output suppression goes, couldn't you pipe it somewhere else? I've had to do the same trick on Linux utils (pipe to /dev/null).
- bjourne 9y agoFor fucks sake! OP asked and I gave him some FREE advice. He doesn't give a shit about the output of cl.exe (it was just an example...) so what's the point of these annoying nitpicks? It makes me want to stop commenting. For the record, NO you can't pipe it somewhere else: https://stackoverflow.com/questions/1453767/prevent-cl-exe-from-printing-the-compiled-source-file https://stackoverflow.com/questions/1453767/prevent-cl-exe-f...