4 ms·
Sure, but is there a popular, modern C compiler out there that doesn't compile C++ as well? Clang, GCC, Intel, MSVC... all of them compile C++ as well as C. I d
by cwyers 9y ago
Sure, but is there a popular, modern C compiler out there that doesn't compile C++ as well? Clang, GCC, Intel, MSVC... all of them compile C++ as well as C. I don't think it's possible to have first-hand support for C and not C++ any more unless you ship your own compiler. It sounds like the issue here is that OpenBSD is shipping older versions of LLVM/Clang and GCC.
- pjmlp 9y agoActually those C compilers you mention are implemented in C++, so yeah from that point of view you are right. I was just speaking from language point of view, without regard to specific implementations.
- temprature 9y agoOpenBSD's base ships the most recent LLVM and Clang (5.01), but there's no LLDB yet and gdb is outdated (6.3, the last GPLv2 version). He would have had a much better time using C99 than C++11, especially since he didn't want to install a newer gdb from ports.