4 ms·
I’ve never been on a system that doesn’t have either gcc or clang built in. But disclaimer that my experience in C is limited to a specific subset of scientifi
by kianN 2y ago
I’ve never been on a system that doesn’t have either gcc or clang built in.
But disclaimer that my experience in C is limited to a specific subset of scientific computing, so my experience is definitely limited
- klysm 2y agogcc/clang isn’t really sufficient though right? Usually there is another build system on top
- kianN 2y agoI only use clang with a Makefile and I’ve done some relatively complex projects albeit with only a few collaborators.
- dmitrygr 2y agoI haven’t seen a system that has GCC but lacks make
- inferiorhuman 2y agoYeah, but is it a version of make that's compatible with your makefiles?
- theamk 2y agolikely yes? I've never had problems with make versions specifically. Usually the project requires distro at most X years old because of gcc/clang version or shared library version. By the time you solve those, your make is new enough as well.
- inferiorhuman 2y agoI mean yeah if all you're using is Linux then the issues with buggy versions of GNU make is something you've probably not seen in a while. Apple is still on 3.81 due to GPLv3 which means bugs. None of the BSDs ship with GNU make in the base system, and I believe they all install it at gmake (which means you've gotta be careful about hardcoding calls to make.
- ryao 2y agoIt is possible to write portable make files that work with both.
- inferiorhuman 2y agoThe pain in doing so and the very real chance you're trying to do something that can't be done in a portable manner is why things like cmake (and every other build system under the sun) exist.
- maccard 2y agoIn my experience as a regular MacOS user, the "portable" solution is to install the version of make that everyone else uses (i.e. it's not portable)
- maccard 2y agoWindows, for one.
- sgarland 2y agoThat’s on you for using Windows.
- maccard 2y agoMy experience with "portable" software is that it's portable as long as you're using the same OS and toolchain as the author. Other systems exist, and plenty of us are less belligerent about our choice of OS.
- skydhash 2y agoAs for windows, I always assume you need to install an IDE like visual studio, clion, codeblocks.
- maccard 2y agoCmd and powershell exist and have done for a long time. There was a period of time where the visual C++ compiler was bundled with the IDE but it’s been available separately for the best part of a decade. Various incarnations of gnu-on-windows have existed for longer than that - Msys/cygwin/wsl are all feasible options and have been for ages. But, none of them come preinstalled.