<div dir="ltr">Sure! Here is the result of R CMD INSTALL<div><br></div><div><div>* installing to library ‘/home/talita/R’</div><div>* installing *source* package ‘mypackage’ ...</div><div>checking for g++... g++</div><div>

checking for C++ compiler default output... a.out</div><div>checking whether the C++ compiler works... yes</div><div>checking whether we are cross compiling... no</div><div>checking for suffix of executables... </div><div>

checking for suffix of object files... o</div><div>checking whether we are using the GNU C++ compiler... yes</div><div>checking whether g++ accepts -g... yes</div><div>checking for gcc... gcc</div><div>checking whether we are using the GNU C compiler... yes</div>

<div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ANSI C... none needed</div><div>checking how to run the C preprocessor... gcc -E</div><div>checking for egrep... grep -E</div><div>checking for ANSI C header files... yes</div>

<div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div><div>checking for stdlib.h... yes</div><div>checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div>

<div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div><div>checking for unistd.h... yes</div><div>checking fftw3.h usability... yes</div><div>checking fftw3.h presence... yes</div><div>checking for fftw3.h... yes</div>

<div>checking jpeglib.h usability... yes</div><div>checking jpeglib.h presence... yes</div><div>checking for jpeglib.h... yes</div><div>checking for inline... inline</div><div>checking for stdlib.h... (cached) yes</div><div>

checking for GNU libc compatible malloc... yes</div><div>configure: creating ./config.status</div><div>config.status: creating src/Makevars</div><div>** libs</div><div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c equalize.cpp -o equalize.o</div>

<div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c freqfilters.cpp -o freqfilters.o</div><div>gcc -std=gnu99 -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c incircle.c -o incircle.o</div>

<div>gcc -std=gnu99 -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c inpoly.c -o inpoly.o</div><div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c interface.cpp -o interface.o<br>

</div><div>gcc -std=gnu99 -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c jpegio.c -o jpegio.o</div><div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c lan.cpp -o lan.o</div>

<div>gcc -std=gnu99 -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c laplacian.c -o laplacian.o<br></div><div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c matrix_r.cpp -o matrix_r.o</div>

<div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c median.cpp -o median.o</div><div>gcc -std=gnu99 -I/home/users/tperciano/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c normalize.c -o normalize.o</div>

<div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c quality.cpp -o quality.o</div><div>g++ -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c save.cpp -o save.o</div>

<div>gcc -std=gnu99 -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c smooth.c -o smooth.o<br></div><div>gcc -std=gnu99 -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c sobel.c -o sobel.o</div>

<div>gcc -std=gnu99 -I/home/talita/lib/R/include -DNDEBUG -g -O2   -I/usr/local/include -I"/home/talita/R/Rcpp/include"   -fpic  -g -O2  -c stretch.c -o stretch.o</div><div>g++ -shared -L/usr/local/lib -o mypackage.so equalize.o freqfilters.o incircle.o inpoly.o interface.o jpegio.o lan.o laplacian.o matrix_r.o median.o normalize.o quality.o save.o smooth.o sobel.o stretch.o -ljpeg -lfftw3</div>

<div>installing to /home/talita/R/mypackage/libs</div><div>** R</div><div>** data</div><div>** inst</div><div>** preparing package for lazy loading</div><div>** help</div><div>*** installing help indices</div><div>** building package indices</div>

<div>** testing if installed package can be loaded</div><div>* DONE (mypackage)</div></div><div><br></div><div>Talita</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 2:17 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 12 May 2014 at 14:03, Talita Perciano wrote:<br>
| Hi,<br>
|<br>
| I'm using Rcpp with my package and I'm having some issues with version 0.11.0.<br>
| I followed all the instructions in the manual and I don't know what is<br>
| happening. The NAMESPACE file of my package is:<br>
|<br>
| useDynLib(x)<br>
| exportPattern("^[[:alpha:]]+")<br>
| importFrom(Rcpp, evalCpp)<br>
|<br>
| In the DESCRIPTION file I have the following specific lines for Rcpp:<br>
|<br>
| Imports: Rcpp (>= 0.11.0)<br>
| LinkingTo: Rcpp<br>
|<br>
| I can run R CMD check --as-cran and R CMD INSTALL with no problems. The issue<br>
| comes when I try to use the package in R. I can load it but it seems that some<br>
| symbols are missing in the shared library of the package. I checked the shared<br>
| library and I got the following issues:<br>
|<br>
| lan.o: In function `Rcpp::Rstreambuf<false>::sync()':<br>
| ../R/Rcpp/include/Rcpp/iostream/Rstreambuf.h:83: undefined reference to<br>
| `R_FlushConsole'<br>
| lan.o: In function `Rcpp::Rstreambuf<true>::sync()':<br>
| ../R/Rcpp/include/Rcpp/iostream/Rstreambuf.h:79: undefined reference to<br>
| `R_FlushConsole'<br>
| lan.o: In function `Rcpp::Rstreambuf<false>::overflow(int)':<br>
| ../R/Rcpp/include/Rcpp/iostream/Rstreambuf.h:74: undefined reference to<br>
| `REprintf'<br>
| lan.o: In function `Rcpp::Rstreambuf<false>::xsputn(char const*, long)':<br>
| ../R/Rcpp/include/Rcpp/iostream/Rstreambuf.h:65: undefined reference to<br>
| `REprintf'<br>
| lan.o: In function `Rcpp::Rstreambuf<true>::overflow(int)':<br>
| ../R/Rcpp/include/Rcpp/iostream/Rstreambuf.h:70: undefined reference to<br>
| `Rprintf'<br>
| lan.o: In function `Rcpp::Rstreambuf<true>::xsputn(char const*, long)':<br>
| ../R/Rcpp/include/Rcpp/iostream/Rstreambuf.h:61: undefined reference to<br>
| `Rprintf'<br>
<br>
</div></div>Can you show the lines (from the shell prompt) that get executed when you do<br>
<br>
    R CMD INSTALL nameOfYourPackage_1.2.3.tar.gz<br>
<br>
It looks like you are either not linling to R, or possibly on a system where<br>
R is built as a _static_ binary (which is mighty uncommon).<br>
<br>
These symbols should come from libR.so which is usually part of the default<br>
build triggered by R CMD INSTALL ....<br>
<br>
Dirk<br>
<div class=""><br>
|<br>
| > R.version<br>
|                _                           <br>
| platform       x86_64-unknown-linux-gnu    <br>
| arch           x86_64                      <br>
| os             linux-gnu                   <br>
| system         x86_64, linux-gnu           <br>
| status                                     <br>
| major          3                           <br>
| minor          1.0                         <br>
| year           2014                        <br>
| month          04                          <br>
| day            10                          <br>
| svn rev        65387                       <br>
| language       R                           <br>
| version.string R version 3.1.0 (2014-04-10)<br>
| nickname       Spring Dance    <br>
|<br>
|<br>
| I would appreciate if someone could help me with that.<br>
|<br>
| Thank you,<br>
| Talita<br>
|<br>
</div>| _______________________________________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</font></span></blockquote></div><br><br>
</div></div>