Need Help about fortran (g77)

  • Thread starter paulga
  • Start date
I came across a problem on the project:
my project is comprised of tens of fortran files. There is a param.h header file collecting all the parameters that are used by the program and subroutines. but after I add this line:
parameter(pi = dacos(-1.0d0))
into the param.h
the command "make " always reports errors like:

param.h: In subroutine `stressinit':
param.h:135:
parameter(pi = dacos(-1.0d0))
^
Invalid declaration of or reference to symbol `dacos' at (^) [initially seen at (^)]

How to employ the function "dacos" in a header file?
Thanks a lot.
 

Want to reply to this thread?

"Need Help about fortran (g77)" You must log in or register to reply here.

Related Threads for: Need Help about fortran (g77)

  • Posted
Replies
0
Views
3K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top