Precompiled headers and SunStudio 12
807575Aug 6 2010 — edited Aug 7 2010Hi, I am newbie to this forums and I hope I've picked up correct subforum to post this.
I'd like to know how to utilize precompiled headers (-xpch) feature in SunStudio 12 project.
I understand that set of #include directives should be combined into common header (let's call it precomp.h e.g. on Windows/MSVC it is usually StdAfx.h)
then precomp.h included in precomp.cpp and precomp.cpp should be provided to compiler with -xpch option.
I've checked out docs but find it pretty confusing and instructions I've found there are
not working for me.
Can someone briefly describe necessary steps to incorporate precompiled headers in SunStudio project.
Any help/info/suggestion is welcome and appreciated.
Regards