×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Library Power Station Fortran

Library Power Station Fortran

Library Power Station Fortran

(OP)
Hello! I have a problem with the libray of Power Station Fortran.
I write this code:
--------------------
program InverseMatrix
real, dimension (3,3) :: A, B
data A/2,2,7,3,3,3,6,5,9/
do i=1,3
write (*,*) A(i,:)
end do
CALL LINRG (3, A, 3, B, 3)
END
pause
end program InverseMatrix
--------------------
but Fortran give me this error:
"error FOR3722: INVERSEMATRIX found when main expected in END PROGRAM detected between PROGRAM and INVERSEMATRIX"
why???

RE: Library Power Station Fortran

How did you name your file? Powerstation can only handle fortran 77 (.for extension) or fortran 90 (.f90 extension)

RE: Library Power Station Fortran

(OP)
fortran 90

RE: Library Power Station Fortran

You have one too many "end", remove the one right below the call to sub LINRG

RE: Library Power Station Fortran

(OP)
If i delete "END" fortran give me this two errors:
----------------------------
Text1.obj : error LNK2001: unresolved external symbol _LINRG@20
Text1.exe : fatal error LNK1120: 1 unresolved externals
----------------------------

RE: Library Power Station Fortran

This is no longer a compilation error: it is a linkage error. That means the library containing LINRG is missing. Have a look at the documentation for the LINRG function and find out what the library is called, then add it to the linker input.

RE: Library Power Station Fortran

(OP)
I resolved!!!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close