[cfe-dev] PCH: separation from source header
Ilya Murav'jov
muravev at yandex.ru
Sun Sep 19 08:40:20 PDT 2010
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?
Regards,
Ilya
More information about the cfe-dev
mailing list