Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, C++ takes long to compile compared to other languages. But I never understood the problems people have with precompiled headers. They've worked just fine, without any tweaking or babysetting, for me since Visual Studio 6. That's 15+ years. I don't know how/if the implementations of gcc or clang work, but using the msvc compiler precompiled headers are braindead simple.


they work just fine with GCC & Clang, too. If you use CMake, I recommend the cotire library : it's one line to add to get PCH on all platforms.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: