[Rd] linking problem

Tong Wang wangtong at usc.edu
Tue Jun 26 08:05:06 CEST 2007

Hi, All 
   I got the following message while trying to compile a file and link it to some local libraries.  I am sure that the path to
local libs are given correctly,  them why can't the linker find them ?
   These libs are static ones,  like libBOOMdebug.a  , is this a problem ?  Do I need to convert all of them to DLL's ?
Is there an easy way to this. I am not quite familiar with this, I would appreciate it if your advice could be a little detailed.

Thanks a lot in advance. 

$ R CMD SHLIB -d dmvtnorm.cpp
making dmvtnorm.d from dmvtnorm.c
gcc   -IC:/cygwin/home/owner/R-2.4.1/include -I/home/owner/BOOM2/src  -gdwarf-2 -Wall -O0 -std=gnu99   -c dmvt
norm.c -o dmvtnorm.o
g++   -shared   -o dmvtnorm.dll dmvtnorm.def dmvtnorm.o  -LC:/cygwin/home/owner/R-2.4.1/bin  -L/home/owner/BOO
M2     -lR  -lBOOMdebug -llapack -lf77blas -lcblas -latlas -lg2c -lboost_program_options-gcc -lboost_filesyste
m-gcc -lboost_signals-gcc -lm
c:\programs\Rtools\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lBOOMdebug
collect2: ld returned 1 exit status
make: *** [dmvtnorm.dll] Error 1

More information about the R-devel mailing list