[Rcpp-devel] How to build ONLY for the 32-bit Architecture?

2011-05-01 Thread Bernhard Pollner
Hello, When I was building and testing my Rcpp based package on Windows XP, everything was fine and worked, so far... Then I moved to Windows 7 (all on a virtual PC on a recent Mac), tried to compile the package here as well. When doing the "Rcmd check Packagename", it goes pretty far, only fa

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-26 Thread Bernhard Pollner
Hi Dirk, > in the end the > | (very simple!! :-)) ) working version of Makevars.win is like that: > > | PKG_LIBS = Plastic.lib $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e > "Rcpp:::LdFlags()") > > Perfect!! No transformation needed for Plastic.lib, ie no export table > business and

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-26 Thread Bernhard Pollner
quot;) with Plastic.lib, which resides directly in src, being the library I wanted to link against. It works, I can invoke the first simple functions from within R, I can enumerate the connected devices, clear the list and give back build-numbers and the like. (But I fear the next ques

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-25 Thread Bernhard Pollner
Hello Dirk, Am 25.04.2011 um 04:54 schrieb Dirk Eddelbuettel: > > You need to include headers for R too, e.g. > > #include > #include > > and maybe > > #include I did that, so, the "final" C document looks like: > | > #include "plastic.h" // adapt to what Plastic needs > #inclu

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-24 Thread Bernhard Pollner
Hi Dirk, thank you for your answer. I tried to write a very simple, pure package (without Rcpp), with the C-File named "ROnlyTest", where I put the code like suggested by you. The Makevars.win contains now only: (*) PKG_CPPFLAGS=-I. PKG_LIBS=Plastic.lib Unfortunetely, I can not compile (fail a

Re: [Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-24 Thread Bernhard Pollner
gt; Hi Bernhard, > > Thanks for posting here! > >> On 24 April 2011 at 18:29, Bernhard Pollner wrote: >> | Hello, >> | >> | I am in the process, i.e. I just began to write a Rcpp-based package for a >> | Windows environment. The purpose of that package wi

[Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

2011-04-24 Thread Bernhard Pollner
kage? Thank you very much, with best greetings from Austria, Bernhard Pollner ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel