Date: Wed, 23 Aug 1995 08:58:09 -0400 From: kagel AT quasar DOT bloomberg DOT com To: egley AT albany DOT net Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Special libraries to search for f2c? Reply-To: kagel AT ts1 DOT bloomberg DOT com Date: Tue, 22 Aug 1995 21:32:58 -0400 From: egley AT albany DOT net (Skip Egley) I'm trying to compile fortran code converted to C via f2c. I'm getting many undefined references, most (if not all) of which are generated by f2c. I'm including all the libraries (i.e. -lgpp -lgpl -lm -lpc) that are mentioned in the FAQ. I also used nm to search for these in all the libraries. I'm hoping that someone recognizes these and tells me that I should be doing such and such. Some of the undefined references are: do_fio e_wsfe s_wsfe i_len s_copy and many more. One other thing. Does djgpp support double complex variables. I'm also getting an undefined reference to zsqrt and nm doesn't report it being in libm.a Do I have to write one myself? Thanks, Skip Egley You need to link in the libraries supplied with f2c, namely: libF77.a and libI77.a add '-lF77 -lI77' to your link line and a '-L' option pointing to the directory containing the f2c libraries. -- Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com Variety is the soul of pleasure. -- Aphra Behn