#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0

    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 ;)
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0

    !!


    Thanks for your help, gentlemen, your advice has been really helpful!!!:cool: :rolleyes: :p :D :eek: :confused:
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0
    Wow, that's when the problem turned into pressin 'Any' key ;) thanks.

IMN logo majestic logo threadwatch logo seochat tools logo