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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Library Power Station Fortran

Status
Not open for further replies.

Salvanto

Systems Engineer
Oct 12, 2018
9
IT
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???
 
How did you name your file? Powerstation can only handle fortran 77 (.for extension) or fortran 90 (.f90 extension)
 
You have one too many "end", remove the one right below the call to sub LINRG
 
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
----------------------------
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top