This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FORTRAN Calling C!


Hi GCC Folks:
 
 
   Allow me to introduce myself: I'm Joseph Roy North, and I'm using g77 on a
Sun Ultra 5 running Solaris 7.  I need some development assistance, please.
   We have legacy FORTRAN software which we are trying to keep in operation.
However, we can use C for new modules.  I have tried to demonstrate a
FORTRAN driver invoking a C function, somewhat similar to that described
in URL = http://www.tc.cornell.edu/Edu/Tutor/Interlanguage/index.shared.html".
When I run something like "g77 fd.f cfunc.o -lm", I keep getting a message like
symbol "mainl" not resolved.  Module "cfunc.c" has "mainl()" instead of the
usual "main()".  Any ideas on how to solve my problem would be gratefully
appreciated.
 
 
 
                                   Sincerely,
 
 
                                   Joseph Roy North
                                   Senior Systems Engineer
                                   OC, Inc.
                                   Alexandria, VA
                                   E: jnorth@oc-inc.com
                                   V: (703) 813-4911
      

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]