This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran link Visual Studio 2008 C object file


Yu Shi wrote:
Hi,
I figured out that actually the interface is not necessary. The reason
that it was not working is because I did not add extern "C" when
declaring the C function. Once this is done, gfortran can recognize
the C function name with an underscore appended. Thanks all for your
help!
Yu

FWIW, that would suggest that your function was compiled as C++, not as C.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]