Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking Fortran procedures with C program

Status
Not open for further replies.

bananos

Programmer
Joined
Jul 11, 2003
Messages
1
Location
RU
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 ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top