f2c can be used to generate suitable code for compilation with a
C++ system using the
The important thing about linking
code with C++ is that the prototypes for the
routines must specify C linkage to avoid name mangling.
So, use an
extern "C" declaration.
-C++ option will not take care
of this when generating skeletons or prototype files as above, however,
it will avoid clashes with C++ reserved words in addition to those in C.