use the option -lgfortran
John Nolan-3 wrote: > > > I recently upgraded to Rtools28 to build a package under > Windows. I see that g77 is no longer in Rtools, but it > does have gfortran, and it uses version: > GNU Fortran (GCC) 4.2.1-sjlj (mingw32-2) > > I am compiling some old fortran code as part of a larger > project. When I do that, I get undefined references: > > gcc.exe: s_cmp.o: No such file or directory > gcc.exe: s_copy.o: No such file or directory > gcc.exe: s_cat.o: No such file or directory > gcc.exe: F77_aloc.o: No such file or directory > > I don't see these entry points in any of the accompanying > library files. I hunted around and found the above > functions in an old MinGW library libg2c.lib > When I link them in, I get different undefined references: > > ilaenv.o:ilaenv.f:(.text+0x55): undefined reference to > `_gfortran_compare_string > dlamch.o:dlamch.f:(.text+0x3bf): undefined reference to > `_gfortran_pow_r8_i4' > dormlq.o:dormlq.f:(.text+0x281): undefined reference to > `_gfortran_concat_string > > > Any guidance on how to solve this problem? > > John Nolan > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > > -- View this message in context: http://www.nabble.com/Rtools28---undefined-references-with-gfortran-tp20705479p23792687.html Sent from the R devel mailing list archive at Nabble.com. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel