3 ms·
Interesting to hear that C++ isn’t that well supported on OpenBSD. The story is quite the opposite with FreeBSD, where it’s really easy to use either clang or g
by Cieplak 9y ago
Interesting to hear that C++ isn’t that well supported on OpenBSD. The story is quite the opposite with FreeBSD, where it’s really easy to use either clang or gcc. I usually spin up new jails to keep different installations sandboxed. CLion works quite nicely with most window managers on FreeBSD, but I rarely boot Xwindows these days and usually prefer to work with emacs inside tmux from the console.
- brynet 9y agoC++ support is pretty good with base Clang 5, OpenBSD is using the libc++ standard library and libc++abi (FreeBSD uses PathScale's libcxxrt). The situation with debuggers is another story, the base version of gdb is outdated (GPLv2 version). The ports/packages version (egdb) has better support for things like C++, threads, but may lack other features. There is currently no support for the LLVM debugger, sadly.
- Wevah 9y agoI wondered why he didn’t use LLDB; thanks.
- dijit 9y agoMy gut feeling is(was) that C++ is a first class citizen on OpenBSD. Its interesting having my beliefs challenged like this from someone so influential. The question becomes; if its not C++, then what is the first class citizen on OpenBSD. And if it is C++ then how do we improve support? Just going to ports seems like a poor answer.
- pjmlp 9y ago> The question becomes; if its not C++, then what is the first class citizen on OpenBSD. Being an UNIX derivative the answer is quite easy, C.
- cwyers 9y agoSure, 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.
- justonepost 9y agoIt's possible given his technical depth he was using more obscure C++ constructs which aren't as well supported. [1] http://madebyevan.com/obscure-cpp-features/ http://madebyevan.com/obscure-cpp-features/