Callling C++ code from C

From: Alexei Betin (
Date: 02/11/04

Date: 11 Feb 2004 09:35:43 -0800

C++ FAQ 32.1 (
- You must use your C++ compiler when compiling main() (e.g., for
static initialization)

And what if my C++ library does not have any static objects which
require constructors called (it might define some static C++ object
pointers but initializes them to 0)?

Is there any reason that main() has to be compiled with C++ compiler
besides static initialization? I cannot think of any...