It is not your problem but the problem of gcc and by making altivec.h look like a c include (wrapping around an extern "C" it). It looks like it has not been fixed in 3.3, I get the same errors. Thanks, Andrew Pinski