[Rcpp-devel] Rcpp problem related to sourceCpp_1.so

Balamuta, James Joseph balamut2 at illinois.edu
Fri Feb 5 00:58:40 CET 2016

Greetings and Salutations,



Also, another example / more help setting up the dev environment on OS X is here:


Happy Rcppin’



From: <rcpp-devel-bounces at lists.r-forge.r-project.org<mailto:rcpp-devel-bounces at lists.r-forge.r-project.org>> on behalf of "aakremena at aol.com<mailto:aakremena at aol.com>" <aakremena at aol.com<mailto:aakremena at aol.com>>
Date: Thursday, February 4, 2016 at 4:57 PM
To: "rcpp-devel at lists.r-forge.r-project.org<mailto:rcpp-devel at lists.r-forge.r-project.org>" <rcpp-devel at lists.r-forge.r-project.org<mailto:rcpp-devel at lists.r-forge.r-project.org>>
Subject: [Rcpp-devel] Rcpp problem related to sourceCpp_1.so

Hi everyone,

My name is Anguel and I am new to this list.

    1. I am trying to implement some simple example of a C++ compiled function from Hadley Wickham's website (http://adv-r.had.co.nz/Rcpp.html#rcpp<https://urldefense.proofpoint.com/v2/url?u=http-3A__adv-2Dr.had.co.nz_Rcpp.html-23rcpp&d=BQMCaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Oj62bnDE1oueLU-seL9f0p1xxu4Hvw2JDuP8BUw91c8&m=WvdoHrvW5pvxSB9ksFcsptZw8fIa15tgk2vm6l-q3Sw&s=kpSJ5RNEN4SuABscb89E5CtCbR_XykCZ9MPBsGU6yBI&e=>).
In fact the function I am trying to compile is the first one:

cppFunction('int add(int x, int y, int z) {  int sum = x + y + z;  return sum;}')

       2. Unfortunately I have immediately run into a problem, getting an error message:

                         Error in dyn.load("/var/folders/12/bqytpkx93w97r3s3_h9q9k_00000gn/T//RtmprqDXCj/sourcecpp_23c71c355072/sourceCpp_1.so") :

                         unable to load shared object '/var/folders/12/bqytpkx93w97r3s3_h9q9k_00000gn/T//RtmprqDXCj/sourcecpp_23c71c355072/sourceCpp_1.so':

                         dlopen(/var/folders/12/bqytpkx93w97r3s3_h9q9k_00000gn/T//RtmprqDXCj/sourcecpp_23c71c355072/sourceCpp_1.so, 6): Symbol not found: ___addtf3

                         Referenced from: /usr/local/lib/libquadmath.0.dylib

                         Expected in: /usr/local/lib/libgcc_s.1.dylib

                         in /usr/local/lib/libquadmath.0.dylib

        3. I am working on OS X Maverics (10.9.3) and I am using R3.2.0
                        platform       x86_64-apple-darwin13.4.0
                        arch           x86_64
                        os             darwin13.4.0
                        system         x86_64, darwin13.4.0
                        major          3
                        minor          2.0
                        year           2015
                        month          04
                        day            16
                        svn rev        68180
                        language       R
                        version.string R version 3.2.0 (2015-04-16)
                        nickname       Full of Ingredients

        4. I'm also using  RcppArmadillo_0.6.500.4.0 and


        5. I can't seem to find any suggestions on the Internet concerning such a problem (maybe somebody will direct me in this regard).

        6. I'll be extremely thankful to everybody who can direct me as to how to proceed from here.  Of course, I'll be glad to provide any other information should you decide to answer my e-mail and request it.

Thank you in advance.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20160204/2f53aaca/attachment.html>

More information about the Rcpp-devel mailing list