Re: linking C++ code against library from fortran sources

2001-12-08 Thread Danny Smith
--- Hans Horn <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I have a bunch of old numerical fortran77 sources, which I compiled with > g77 > and archived into, say libMyF77.a. > > I want those f77 functions to be called from w/i a c++ program. > > Here are my two questions: > > 1. to satisfy

linking C++ code against library from fortran sources

2001-12-08 Thread Hans Horn
Hi everybody, I have a bunch of old numerical fortran77 sources, which I compiled with g77 and archived into, say libMyF77.a. I want those f77 functions to be called from w/i a c++ program. Here are my two questions: 1. to satisfy the compiler, I have to declare the functions used as 'extern'.