[cfe-dev] Precompiled headers error with clang++ 2.7-r96348

Bruce Cran bruce.cran at gmail.com
Sat Mar 6 02:07:50 PST 2010


Hi,

I'm trying to use precompiled headers when building a C++ application
on amd64 FreeBSD using llvm 2.7 r96348,
but even with a simple "hello world" application I'm getting the error:

error: invalid or corrupt PTH file 'obj/helloworldpch.gch'
Assertion failed: (P && "No PTHManager."), function
AddImplicitIncludePTH, file InitPreprocessor.cpp, line 85.

I've put the test application at
http://www.cran.org.uk/~brucec/freebsd/helloworldpch.tar.gz - I'm
trying to
build it using "gmake CXX=clang++".

Do precompiled headers work with clang++ yet?

-- 
Bruce Cran



More information about the cfe-dev mailing list