Re: [R] How to make sure R's g++ compiler uses certain C++ flags when making a package

2011-03-17 Thread Mike Marchywka
> Date: Wed, 16 Mar 2011 13:50:37 -0700 > From: solomon.mess...@gmail.com > To: r-help@r-project.org > Subject: Re: [R] How to make sure R's g++ compiler uses certain C++ flags > when making a package > > Looks like th

Re: [R] How to make sure R's g++ compiler uses certain C++ flags when making a package

2011-03-16 Thread solomon.mess...@gmail.com
Looks like the problem may be that R is automatically passing this flag to the g++ compiler: "-arch x86_64" which appears to be causing trouble for opencv. Does anyone know how to suppress this flag? -- View this message in context: http://r.789695.n4.nabble.com/How-to-make-sure-R-s-g-compiler

[R] How to make sure R's g++ compiler uses certain C++ flags when making a package

2011-03-15 Thread Solomon Messing
I am trying to use some code from opencv in an r package, using Rcpp to build the package. When I compile the c code on my machine, it works fine. However, when I try to include it in my package, it gives me a bunch of error messages like: "error: opencv2/core/operations.hpp: No such file or di