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

Compiling Fortran, error message: undefined reference to `asinh_'

Status
Not open for further replies.

Pearl11

Programmer
Oct 28, 2013
2
CA
Hello,

This is the first time I use Fortran, and I get an error which I can't find a solution to because I'm not familiar with the language. I'm running a program which worked for someone else, so I think the error has to do with the version or the Libraries which are included on my machine. I'm submitting from a Linux terminal and compiling using f77. This is the error message:

undefined reference to `asinh_'

Does anyone know what's needed here?

Thanks a bunch for your help,
Pearl11
 
How are you building your program? Is it something like

gfortran xxx.f77 -o xxx
 
Dear Perl11

If ASINH is not in your Fortran library (which it is probably not), then you can use this:

Code:
!-
    DOUBLE PRECISION X 
    DOUBLE PRECISION ASINH 
    ASINH(X)=LOG(X+SQRT(X**2+1.))
 
Hi, thanks to the both of you for your replies. Since f77 compilier doesn't support the asinh function, I changed F77=f77 to F77=gfortran in my makefile and the program ran :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top