Salford fortran library compiler error?

  • Fortran
  • Thread starter jcang
  • Start date
  • #1
2
0
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.
 

Answers and Replies

  • #2


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
 

Related Threads on Salford fortran library compiler error?

  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
4
Views
7K
  • Last Post
Replies
9
Views
8K
Replies
1
Views
2K
Replies
2
Views
5K
  • Last Post
Replies
2
Views
3K
Replies
16
Views
440
  • Last Post
Replies
2
Views
5K
  • Last Post
Replies
10
Views
3K
Top