gcc works, g++ reports error. $ g++ --version powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5341) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I guess the problem can be solved if I do not force the use of a C++ compiler for C code on mac, which is used in SConstruct (line 473) in case that scons treat .C files as c code. Could you try to change line 471 of SConstruct to elif platform_name in ['win32', 'cygwin']: This will stop scons from using g++ for the tests. I do hope that g++ will be used for .C files that lyx uses. Cheers, Bo