From cernmach01 at gmail.com  Sat May 30 13:56:38 2009
From: cernmach01 at gmail.com (minime234)
Date: Sat, 30 May 2009 04:56:38 -0700 (PDT)
Subject: [Rd] Rtools28 - undefined references with gfortran
In-Reply-To: <OF6B6AE998.718395DA-ON8525750D.005F0106-8525750D.005F011D@american.edu>
References: <OF6B6AE998.718395DA-ON8525750D.005F0106-8525750D.005F011D@american.edu>
Message-ID: <23792687.post@talk.nabble.com>


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 at 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.



[Rd] Rtools28 - undefined references with gfortran
minime234