Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Precompiled headers and SunStudio 12

807575Aug 6 2010 — edited Aug 7 2010
Hi, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2010
Added on Aug 6 2010
5 comments
215 views