-pch option always causes compiler to crash, or other strange errors

Dale Schouten (Intel)
Total Points:
1,960
Status Points:
1,460
Brown Belt
June 1, 2009 11:28 AM PDT
Rate
 
#1
Quoting - jdictos
I'm using intel compiler version 11.0 on Mac OSX 10.5. We have many c++ files that all include the same header, which includes a lot of other headers, some of which are c++ stl headers. Well we are trying to use the pch header feature of the intel compiler (of course the microsoft compiler works fine), but each time we try to use the -pch option, the compiler either crashes after compiling the second source file, or there are a ton of errors like so:
...
Without the -pch option, everything compiles fine.

...
Interesting to note, this problem does NOT happen with our C code, only when we compile C++ source objects does this occur.

I'm a little confused, when you say "the microsoft compiler works fine", do you mean gcc?  MS doesn't have a compiler for Mac that I'm aware of.  Also, if you can post some sort of reproducible test case that would help immensely.  Also, are you using XCode or the command line for your build?

Thanks!

Dale



Intel Software Network Forums Statistics

8491 users have contributed to 31629 threads and 100770 posts to date.
In the past 24 hours, we have 28 new thread(s) 120 new posts(s), and 168 new user(s).

In the past 3 days, the most popular thread for everyone has been Implicite multithreading ??? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member shadowwolf99