[cfe-dev] PCH: separation from source header

Argyrios Kyrtzidis kyrtzidis at apple.com
Sun Sep 19 09:42:37 PDT 2010


On Sep 19, 2010, at 4:40 PM, Ilya Murav'jov wrote:

> Argyrios Kyrtzidis пишет:
>>> Ok, now build/test.h.pch is used somehow. But there plenty of errors if
>>> I use PCH for C++, e.g.:
>>> 
>>> $ cat src/test.h
>>> #include <sstream>
>>> $ cat src/test.cpp
>>> #include <test.h>
>>> 
>>> int main()
>>> {
>>>   std::stringstream strm;
>>>   return 0;
>>> }
>>> 
>>> $ clang++ -x c++-header -Isrc -o build/test.h.pch src/test.h
>>> $ clang++ -c -Isrc -o build/test.o src/test.cpp		<---- no errors
>>> $ clang++ -c -Isrc -include build/test.h -o build/test.o src/test.cpp
>>> 
>>> [snip errors]
>>> 
>>> ############### end of console output
>>> 
>>> Has Clang PCH support only for C, not for C++? Should I file in a bug
>>> about that?
>> 
>> Could you test with the latest clang from trunk and if the problem persists file a bug with a preprocessed file ?
>> 
>> -Argiris
> 
> I am with clang 2.8, clang++ -v
> clang version 2.8 (branches/release_28 114073)
> Target: i386-pc-linux-gnu
> Thread model: posix
> 
> Is that enough or still I need trunk clang?

Should be enough, please file a bug with a preprocessed file and I'll take a look at it.

-Argiris

> 
> Regards,
> Ilya
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list