Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Salford fortran library compiler error?

  1. May 2, 2010 #1
    Salford fortran library compiler error??

    Dear all,

    I have install the NAG fortran library, firstly, I compile the fortran program by using the
    Salford Fortran compiler with NAG static Lib. Command Prompt
    by typing
    ftn95 -c ProgramName.f95

    It got a few warning, not error. But I think those warning would not effect on the result.

    After that, I try to run this program by typing:
    ftn95 ProgramName.f95 -o H.exe

    But it occur:

    ***More than one source file specified
    1 error [ProgramName.f95] - Compilation failed.

    What error is this?
    And How can i solve it?

    Thanks for any reply.
  2. jcsd
  3. May 6, 2010 #2
    Re: Salford fortran library compiler error??

    You need to use FTN95 options :)

    ftn95 programname.f95 /link

    Is probably what you want. That will not link in the NAG library though. You can launch the online help with

    ftn95 /help
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook