[Rcpp-devel] Building/linking trouble with cxxfunction()

Ken.Williams at thomsonreuters.com Ken.Williams at thomsonreuters.com
Wed Feb 16 21:21:00 CET 2011


On 2/16/11 12:02 PM, "Dirk Eddelbuettel" <edd at debian.org> wrote:


>On 16 February 2011 at 11:47, Ken.Williams at thomsonreuters.com wrote:
>| As an aside, have you considered moving this list to some open forum
>| that's 1) searchable
>
>It is. The list archive has some Google juice. If you type a specific
>question, you sometimes gets the list. That is a Good Thing.

The frustrating part is that hundreds of R-related lists are on the same
server, so even if I use Google's "site:" operator I tend to get a lot of
unrelated results at the same time, and I have trouble telling good stuff
from bad stuff at my current skill level.


>Gmame.org indexes it. I happily use Gmane to post (occassionally) post to
>some lists I no longer am subscribed to, or never was, but still want to
>interact with on occassionan; ess-help is a good example.

I'll try Gmane.org for searching, that will be helpful.  But according to
http://post.gmane.org/post.php?group=gmane.comp.lang.r.rcpp , posting is
not allowed.



>[ Lastly, remember that Romain and I do this as volunteers.

Yes, of course.  I'm just wondering if there's a way to do the social
engineering better, taking advantage of other community members for the
"easy" stuff, and freeing you to concentrate on aspects you might find
more rewarding.  Closed, purpose-built lists don't really have a good way
to get people who start out casually involved to become more intimately
involved.


>Now: your question.  We obviously cannot replicate this as we do not have
>the
>library in question. I do assure you that everything I ever need to set
>in a
>src/Makevars and/or a Makefile, I was also able to set in cxxfunction()
>for
>tests.

Even linking against arbitrary external libraries?  Looking at the source
& docs for cxxfunction() I'm not sure how that's accomplished.  It looks
like the "..." argument is just silently ignored, and

I think in this case the specific library isn't important, maybe I should
try linking against some library "everyone" has (but that's not already
linked in R.app) to make sure the problem doesn't lie with the library.
Any suggestions?


>
>But if it doesn't work with cxxfunction, I would humbly suggest you try
>the
>manual route of a makefile (or even shell script) until you have
>PKG_CXXFLAGS
>and PKG_LIBS set. 

I guess part of my problem is that I don't yet know how to do that, so I
was trying the "easier" prototyping method of using inline, to make a nice
succinct test case.

 -Ken



More information about the Rcpp-devel mailing list