4 ms·
>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 diffe
by 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...