[Rd] linking problem

From: Tong Wang <wangtong_at_usc.edu>
Date: Mon, 25 Jun 2007 23:05:06 -0700


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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 26 Jun 2007 - 06:16:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Jun 2007 - 06:35:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.