I am facing problem while migrating the c++ code from Linux to Solaris. In linux the code is absolutly compiled fine with GCC compiler but when i am using the same in Solaris it coomplains
bash-3.1$ gcc LibSip.h
gcc: Compilation of header file requested
The same command is working fine in Linux
Solaris GCC Version
bash-3.1$ gcc -v
Reading specs from /usr/add-on/cygnus/gnupro-99r1/bin/../lib/gcc-lib/sparc-sun-solaris2.5.1/2.9-gnupro-99r1/specs
gcc version 2.9-gnupro-99r1
bash-3.1$ uname -a
SunOS drccd 5.10 Generic_141414-10 sun4u sparc SUNW,Sun-Fire-V890
pre-compiled headers have been introduced with gcc v3.4. Pre-compiled header is used to reduce the time to compile programs. But this is just a nice "add-on". Just skip header compilation on Solaris (or for gcc version older than 3.4), and you should be fine.