Error in linking when converting Fortran to C (using f2c)
问题 I'm trying to build a project that is mostly C but has some Fortran subroutines. The code is old and I'm trying to make it work on modern machines. My main function calls an external function extern void __stdcall mainlhs(void); The function is a subroutine written in Fortan subroutine mainlhs I want to convert the Fortran code (which contains this and other subroutines) using f2c and put the result in my project. f2c does convert the code and the resulting C code does compile. When I try to