How to Fix 'Undefined Symbol: G77_date_and_time_0' Error in Fortran Subroutine?

  • Context: Fortran 
  • Thread starter Thread starter Dreyliciouss
  • Start date Start date
  • Tags Tags
    Fortran Symbol
Click For Summary
SUMMARY

The forum discussion addresses the "undefined symbol: G77_date_and_time_0" error encountered when executing a Python program that utilizes a Fortran subroutine. The issue arises from a potential incompatibility between the g95 compiler and g77 function calls. Users are advised to ensure compatibility between the Fortran compiler versions being used, as this error typically indicates a mismatch in the expected function definitions across different compilers.

PREREQUISITES
  • Understanding of Fortran subroutines
  • Familiarity with Python integration with Fortran
  • Knowledge of g95 and g77 compilers
  • Basic troubleshooting of compiler errors
NEXT STEPS
  • Research compatibility issues between g95 and g77 compilers
  • Learn how to properly link Fortran subroutines in Python using f2py
  • Explore alternative Fortran compilers that may resolve the issue
  • Investigate the use of compiler flags to manage symbol visibility
USEFUL FOR

Developers working with Python and Fortran integration, particularly those troubleshooting compiler-related errors in scientific computing applications.

Dreyliciouss
Messages
1
Reaction score
0
27 Jul 10 2:35
Hello,
I have an error when I try to execute my python program which uses a fortran subroutine (which call date_and_time function) :
"undefined symbol: G77_date_and_time_0"

Do you know how can I fix this issue?
Thank you very much!
 
Technology news on Phys.org
It looks like a compiler error. Are you trying to force a g95 compile that uses g77 calls? It seems like it may be a compiler-specific function that is causing the problem.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 17 ·
Replies
17
Views
7K
  • · Replies 59 ·
2
Replies
59
Views
12K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K