Looks like the RCPPFLAGS variable is null for some reason.

What do you get if you type:
R CMD config --cppflags

Into a terminal console?



________________________________________
From: [email protected] [[email protected]]
Sent: 19 February 2012 15:25
To: Peter Aberline; [email protected]
Cc: [email protected]
Subject: Re: RE: Re: RE: [Rcpp-devel] RInside on windows

the exact errors series are:
CMake Error at CMakeLists.txt:14 (string):

string sub-command SUBSTRING requires four arguments.

CMake Error at CMakeLists.txt:19 (string):

string sub-command LENGTH requires two arguments.

CMake Error at CMakeLists.txt:34 (string):

string sub-command SUBSTRING requires four arguments.

CMake Error at CMakeLists.txt:50 (string):

string sub-command SUBSTRING requires four arguments.


row 14:

string(SUBSTRING ${RCPPFLAGS} ${NUM_TRUNC_CHARS} -1 RCPPFLAGS)





---- Message d'origine ----
>De : "Peter Aberline" <[email protected]>
>À : "[email protected]" <[email protected]>;
> "[email protected]" <[email protected]>
>Objet : RE: Re: RE: [Rcpp-devel] RInside on windows
>Date : 19/02/2012 15:56:06 CET
>Copie à : "[email protected]" <[email protected]>
>
>I'm using Cmake 2.8.5 on Ubuntu 11.10 and it works fine for me.
>
> Which cmakelists file are you using, and what is on line 14?
>
>
>
> ________________________________________
> From: [email protected] [[email protected]]
> Sent: 19 February 2012 14:54
> To: Peter Aberline; [email protected]
> Cc: [email protected]
> Subject: Re: Re: RE: [Rcpp-devel] RInside on windows
>
> I use CMake 2.8.7,
> it seems to be the latest, it it possible a conflict between the version
> supplied in the RInside folder and this version?
>
> ---- Message d'origine ----
> De : "Peter Aberline"
> À : "'[email protected]'" ;
> "'[email protected]'"
> Objet : Re: RE: [Rcpp-devel] RInside on windows
> Date : 19/02/2012 15:41:27 CET
> Copie à : "'[email protected]'"
>
> Make sure you are using the latest version of cmake. The files use a cmake
> string function only in recent versions of cmake.
>
> * Sent from my mobile device.
>
> From: [email protected] [mailto:[email protected]]
> Sent: Sunday, February 19, 2012 02:30 PM
> To: Peter Aberline; [email protected] <[email protected]>
> Cc: [email protected] <[email protected]>
> Subject: Re: RE: [Rcpp-devel] RInside on windows
>
> Hello Peter
> I tried to generate the file from the CMakeLists file supplied,I use the
> cmake-gui but I get the following error:
> I created a folder in which I put a main.cpp and the CMakeLists and then run
> the generate from the cmake-gui
> and I get:
>
> CMake Error at CMakeLists.txt:14 (string):
>
> string sub-command SUBSTRING requires four arguments.
>
> Is there something else to do?(I am new on cmake)
> thanks
> pascal
>
> ---- Message d'origine ----
> De : "Peter Aberline"
> À : "[email protected]" ;
> "Dirk Eddelbuettel"
> Objet : RE: [Rcpp-devel] RInside on windows
> Date : 14/02/2012 20:52:36 CET
> Copie à : "[email protected]"
>
> You can generate .cbp files using the CMakelists.txt files which now ship
> with the RInside examples.
>
> cmake –G “CodeBlocks - Unix Makefiles” <path to CMakeLists.txt>
>
>
>
> From: [email protected] [mailto:rcpp-devel-bounces@r-f
> orge.wu-wien.ac.at] On Behalf Of [email protected]
> Sent: 14 February 2012 19:51
> To: Dirk Eddelbuettel
> Cc: [email protected]
> Subject: Re: [Rcpp-devel] RInside on windows
>
> Dirk,
>
> yes but I start to use codeblocks since sunday, and
> "it does not, by default, use makefiles it has its own .cbp files which do
> the same thing automatically"
>
> it's very easy to use, I did it for boost with no problem, that's why I
> wanted to know the include files and the lib
> for rcpp,rinside
>
> it's possible to use a makefile with codeblock, I am going to try how to do
> that,
> thanks
> pascal
>
>
>
>
> ---- Message d'origine ----
> >De : "Dirk Eddelbuettel" <[email protected]>
> >À : [email protected]
> >Objet : Re: [Rcpp-devel] RInside on windows
> >Date : 14/02/2012 19:57:21 CET
> >Copie à : [email protected]
> >
> >
> > Patrick,
> >
> > On 14 February 2012 at 19:27, [email protected] wrote:
> > | this is one of my problem, I am new since this week-end on codeblocks,
> I
> > use
> > | its builder and from what I thought you link with the static libraries
> > | 'libRcpp.a,libRInside.a and the none availaible libR.a, and you put the
> > three
> > | dll files in your bin directory; thats why I was looking for libR.a.
> > | even if I set libR.dll for the linker settings/link libraries, I get
> some
> > | messages:
> > |
> > | libRcpp.a undefined reference to '_Unwind_Resume'
> > |
> > | I put the include folder of Rcpp,R_ext and RInside, with additional .h
> > files :
> > | R,Rconfig,Rcpp,Rcppcommon,Rdefines,Rembedded,Rinternals,Rmath,Rversion,S,
> ga
> > ,graphapp,iconv,libintl,zconf,
> > | and zlib
> > |
> > | I downloaded the R version 2.14.1 and the Rcpp,Rinside packages
> > yesterday,
> > |
> > | what bother me is that I did that on linux with no problem, put the
> > include,
> > | set the linker to the three libraries and run, I need to work on
> windows,
> > and
> > | there is this problem
> > |
> > | what do you put as library for the linker? which includes files?
> >
> > Use the supplied Makefile.win unless you /really/ know what you are
> doing.
> >
> > Dirk
> >
> > --
> > "Outside of a dog, a book is a man's best friend. Inside of a dog, it is
> > too
> > dark to read." -- Groucho Marx
> >
>
> ________________________________
> This message and any attachments contain information that may be RMS Inc.
> confidential and/or privileged. If you are not the intended recipient (or
> authorized to receive for the intended recipient), and have received this
> message in error, any use, disclosure or distribution is strictly
> prohibited. If you have received this message in error, please notify the
> sender immediately by replying to the e-mail and permanently deleting the
> message from your computer and/or storage system.
>
> ________________________________
> This message and any attachments contain information that may be RMS Inc.
> confidential and/or privileged. If you are not the intended recipient (or
> authorized to receive for the intended recipient), and have received this
> message in error, any use, disclosure or distribution is strictly
> prohibited. If you have received this message in error, please notify the
> sender immediately by replying to the e-mail and permanently deleting the
> message from your computer and/or storage system.
>
> This message and any attachments contain information that may be RMS Inc.
> confidential and/or privileged. If you are not the intended recipient (or
> authorized to receive for the intended recipient), and have received this
> message in error, any use, disclosure or distribution is strictly
> prohibited. If you have received this message in error, please notify the
> sender immediately by replying to the e-mail and permanently deleting the
> message from your computer and/or storage system.
>
>

This message and any attachments contain information that may be RMS Inc. 
confidential and/or privileged.  If you are not the intended recipient (or 
authorized to receive for the intended recipient), and have received this 
message in error, any use, disclosure or distribution is strictly prohibited.   
If you have received this message in error, please notify the sender 
immediately by replying to the e-mail and permanently deleting the message from 
your computer and/or storage system.

_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to