Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-17 Thread Simon Zehnder
The error was on my system. After trying several things (many thanks to Steve Jaffe at this point, who gave not up on me :)) I decided to make a reinstall of my system. I reinstalled the compiler and build R with gcc 4.8.1. I was then able to successfully install my package with the suggested co

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-05 Thread Simon Zehnder
Follow-up: I found a connection to this error when running through the libraries: the function for which the symbol is not found is defined in line 85 of the stl_list.h. It is included into the libstdc++.a/libstdc++.dylib which is linked to the nloptr/nlopt build. As the build inside R throws a

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-05 Thread Simon Zehnder
Hi Dirk, An important update to my message: I called install.packages("nloptr") and I get exactly the same error. So I think that something with my R and/or gcc installation is not correct. When I install nloptr on the linux server of our cluster all runs fine. The point, that I can build the

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-05 Thread Dirk Eddelbuettel
Simon, On 5 September 2013 at 12:44, Simon Zehnder wrote: | Hi Dirk, | | I was able to reconstruct my System this night and I immediately tried your suggestions: | | ii) Either using an absolute path nor repositioning the linking did work in my case. Well then you need to try something else

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-05 Thread Simon Zehnder
Hi Dirk, I was able to reconstruct my System this night and I immediately tried your suggestions: ii) Either using an absolute path nor repositioning the linking did work in my case. i) Here is the whole building process: Simons-MacBook-Pro:finmixcopy simonzehnder$ R CMD INSTALL finmix/ * i

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-05 Thread szehnder
Message- From: Dirk Eddelbuettel Sender: rcpp-devel-bounces@lists.r-forge.r-project.orgDate: Wed, 4 Sep 2013 21:38:02 To: Steve Jaffe Cc: rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] Symbol not found when including an external library On 4 September 2013 at 21:08, Steve

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-05 Thread szehnder
-bounces@lists.r-forge.r-project.orgDate: Wed, 4 Sep 2013 21:38:02 To: Steve Jaffe Cc: rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] Symbol not found when including an external library On 4 September 2013 at 21:08, Steve Jaffe wrote: | The simplest solution is to build nlopt as a

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-04 Thread Dirk Eddelbuettel
On 4 September 2013 at 21:08, Steve Jaffe wrote: | The simplest solution is to build nlopt as a shared library and link to | that. See http://ab-ini tio.mit.edu/wiki/index.php/NLopt_Installation#Shared_libraries Please see the subsequent posts by Doug -- we already have that. | (I may be wrong,

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-04 Thread Steve Jaffe
The simplest solution is to build nlopt as a shared library and link to that. See http://ab-initio.mit.edu/wiki/index.php/NLopt_Installation#Shared_libraries (I may be wrong, but I don't think it's always possible to link a static library into a shared library regardless of how the static librar

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-04 Thread szehnder
BlackBerry® Service von E-Plus. -Original Message- From: Dirk Eddelbuettel Date: Wed, 4 Sep 2013 12:30:08 To: Simon Zehnder Cc: rcpp-devel\@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] Symbol not found when including an external library On 4 September 2013 at 18:51, Simon Zehnder

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-04 Thread Douglas Bates
Do you know of the nloptr and nloptwrap R packages based on NLopt. The nloptr package installs the NLopt library. Unfortunately it does not put the header files in inst/include in the source package so they will be available in the include subdirectory of the installed package. On Wed, Sep 4,

Re: [Rcpp-devel] Symbol not found when including an external library

2013-09-04 Thread Dirk Eddelbuettel
On 4 September 2013 at 18:51, Simon Zehnder wrote: | Dear Rcpp::Users, Rcpp::Devels, | | I am following the ongoing discussion 'How to use external C++ libraries in R packages withRcpp' (Makevars are still one of my weaknesses) and I have a related question. | | I am trying to use the C++ opt

[Rcpp-devel] Symbol not found when including an external library

2013-09-04 Thread Simon Zehnder
Dear Rcpp::Users, Rcpp::Devels, I am following the ongoing discussion 'How to use external C++ libraries in R packages withRcpp' (Makevars are still one of my weaknesses) and I have a related question. I am trying to use the C++ optimization library nlopt (http://ab-initio.mit.edu/wiki/index.