8 ms·
On a related note, do we have any fully complaint C11 compiler for MS Windows or is using gcc under WSL (or a VM) the best option? I take it there is no C17 com
by Santosh83 7y ago
On a related note, do we have any fully complaint C11 compiler for MS Windows or is using gcc under WSL (or a VM) the best option? I take it there is no C17 compliant compiler yet?
- rwmj 7y agoGCC 8 and above support C17, and there is a version available for Windows. See also: https://gcc.gnu.org/onlinedocs/gcc/Standards.html https://gcc.gnu.org/onlinedocs/gcc/Standards.html
- AlexeyBrin 7y agoClang and GCC both support C17 and there are binary versions for Windows see MSYS2. I think Pelles C also supports C11.
- basementcat 7y agoDoes glibc support cthreads yet?
- AlexeyBrin 7y agoAFAIK, C11 threads are supported only in Linux. From a glibc point of view C11 threads are supported since v2.28.
- earenndil 7y agoC11 threads are also available on freebsd and possibly (don't know) other BSDs. Pelles c also supports them.
- jeremyjh 7y agoYou don’t need WSL to run gcc on windows. You can use the mingw distribution to get a GNU tool chain that compiles a standard windows EXE.
- Gibbon1 7y agoStuff people 'just know' mingw: For native build and execution. A lot of Windows IDE's will just work with mingw. msys2: For posix compatible build but native win32 targets. Useful when your project uses autotools. Like when trying to build someones library. msys2 just tends to work. Trying to get autotools to work under windows tends to exceed my patience, time and brain cells. cigwin: for a posix compatible build and runtime environment. Also gcc can be built as a cross compiler. The two times I tried it is was more straight forward that I would have thought.
- chaotic_clanger 7y agocygwin you can build also with gcc for cygwin, but you introduce a cygwin.dll (not sure about the name) dependency.
- badsectoracula 7y agoNote that msys2 isn't just for building programs, it provides a full bash environment with many unix tools and a package manager (pacman, same as in Arch Linux) to install more. The build environment is unixy enough to be able to build more tools from source using the classic ./configure; make; make install route (more or less, may need some modifications in the code). For me my main use of msys2 is as a shell where i run scripts and command-line utilities with the build stuff being a distant secondary use.
- 80x25 7y agoclang-cl seems promising: https://clang.llvm.org/docs/UsersManual.html#clang-cl https://clang.llvm.org/docs/UsersManual.html#clang-cl