Linking Fortran procedures with C program
Hello everybody on the boards! :)
I came across the following problem. There is a program written in C (pure ANSI C). There is a library of procedures written in Fortran (in a form of .FOR file) - in fact it contains some computational routines from NAG library. It is used by C-program. The whole thing was created particular time ago and compiled using Watcom compiler under DOS. This compiler supported mixed-language progs.
Now I need to compile the program (C+Fortran) under Win32. Actually - Windows 2000 and MS Visual C++ 6.0 is what I have. I looked up MSDN site and found that MS VC++ allows to combine code in Fortran and C++ transparently, but the compiling stage involves Microsoft Powerstation Fortran compiler - and then, as I didn't have it, I tried to find one and revealed that MS doesn't support it anymore =( I only found a trial version that expired in 1994!! changing computer date didn't help, it doesn't execute.
Can anybody help me solve the described question? Are there any other Fortran compilers to compile the procedures into a form compatible with MSVC?
Thanks ahead ;)