From guerrero.steve at gene.com  Fri Jan  9 22:04:54 2009
From: guerrero.steve at gene.com (Steve Guerrero)
Date: Fri, 09 Jan 2009 13:04:54 -0800
Subject: [Rd] forcing the use of the c++ linker with c++ and fortran sources
Message-ID: <4967BBF6.7010709@gene.com>


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.

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



[Rd] forcing the use of the c++ linker with c++ and fortran sources
Steve Guerrero