A
Alexei Betin
C++ FAQ 32.1 (http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html#faq-32.1)
says:
<quote>
- You must use your C++ compiler when compiling main() (e.g., for
static initialization)
</quote>
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...
Thanks,
~Alexei
says:
<quote>
- You must use your C++ compiler when compiling main() (e.g., for
static initialization)
</quote>
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...
Thanks,
~Alexei