July 11th, 2003, 06:28 AM
Inserting Fortran procedures into 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 ;)
July 14th, 2003, 08:27 AM
Thanks for your help, gentlemen, your advice has been really helpful!!!:cool: :rolleyes: :p :D :eek: :confused:
July 14th, 2003, 10:38 AM
July 14th, 2003, 01:40 PM
Wow, that's when the problem turned into pressin 'Any' key ;) thanks.