Dear All, I am intending to build a package (pksmooth) on Linux to work on Windows. Some c++ functions need c++ libraries (numerical recipes) from a static library "libNR.a". Building the package on Linux for Linux is allright. However, when sending the 'pksmooth_1.0.tar.gz' to the online Windows builder (win-builder.r-project.org),the compilation doesn't take into account the library "libNR.a". Yet, it is included in the tar.gz file in a 'libs' folder and called in a makefile located in the 'src' folder.
Any comment will be appreciated, Maxime NB: Here is the compilation error: _____________________________________________________________________________(__ * installing *source* package 'pksmooth' ... ** libs making DLL ... g++ -I"d:/Rcompile/recent/R-2.10.1/include" -O2 -Wall -c ksmoothC.C -o ksmoothC.o ksmoothC.C: In function 'double fxRoot(double (*)(double), double, double)': ksmoothC.C:16: warning: 'root' may be used uninitialized in this function g++ -shared -s -o pksmooth.dll tmp.def ksmoothC.o -Ld:/Rcompile/recent/R-2.10.1/bin -lR ksmoothC.o:ksmoothC.C:(.text+0x1ab): undefined reference to `NR::zbrak(double (*)(double), double, double, int, NRVec<double>&, NRVec<double>&, int&)' ksmoothC.o:ksmoothC.C:(.text+0x1fc): undefined reference to `NR::rtbis(double (*)(double), double, double, double)' collect2: ld returned 1 exit status ... done ** R ** preparing package for lazy loading ** help *** installing help indices ** building package indices ... ** MD5 sums packaged installation of 'pksmooth' as pksmooth_1.0.zip * DONE (pksmooth) ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.