From murdoch at stats.uwo.ca  Sat Jan 10 01:33:42 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 09 Jan 2009 19:33:42 -0500
Subject: [Rd] forcing the use of the c++ linker with c++ and fortran
	sources
In-Reply-To: <4967BBF6.7010709@gene.com>
References: <4967BBF6.7010709@gene.com>
Message-ID: <4967ECE6.4090803@stats.uwo.ca>

On 09/01/2009 4:04 PM, Steve Guerrero wrote:
> I'm trying to build a package which has both gfortran and c++ code.
> 
> In my installation of R, the R CMD INSTALL process compiles each c++ and 
> gfortran code with the correct compiler, but performs the link step with 
> "gfortran" and this creates undefined symbols at load time.

You should offer more details:  what platform are you working on? What 
version of R? Do you have a simple example that people could try, and 
see the errors?

Duncan Murdoch

> 
> How does one override/force the use of a different command in the link 
> step?  Is there an appropriate entry in Makevars that will do the trick?
> 
> Thanks,
> -sg
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] forcing the use of the c++ linker with c++ and fortran sources
Duncan Murdoch