------- Comment #3 from danglin at gcc dot gnu dot org 2008-03-22 20:48 ------- The problem seems to be the -fpreprocessed option in the gfortran command. We need to run the preprocessor to handle the
#ifdef __cplusplus extern "C" { #endif and #ifdef __cplusplus } #endif -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35665