I have spent two days trying to run through this 'guide' to setting up the
software...
http://stackoverflow.com/questions/12886517/how-to-set-up-eclipse-statet-rcpp-on-windows
Only 158 build errors...
Build info:R 2.15.1 installed to C:\R (no spaces)Installed both packages:
install.packages(c("Rcpp","RInside"),type="source")Rtools 2.15 installed and
C:\Rtools\bin; C:\Rtools\gcc-4.6.3\bin; C:\R\R-2.15.1\bin\i386; added to the
environment PATH variableEclipse + CDT : I downloaded the
eclipse-cpp-juno-SR2-win32.zip file aasd.I created the skeleton package:
Rcpp.package.skeleton("MyCppPackage", module=TRUE)and dragged the files over to
the "MyCppPackage"
I ran through all the steps in the 'guide'... Created the R build configs, set
up the R console, Iv done exactly everything the tutorial said. Here are my
C/C++ Build Settings:
Cross G++ Compiler:-DINSIDE -I"C:\R\R-2.15.1\include"
-I"C:\R\R-2.15.1\library\Rcpp\include"
-I"C:\R\R-2.15.1\library\Rcpp\include\Rcpp"
-I"C:\R\R-2.15.1\library\RInside\include" -O0 -g3 -Wall -c -fmessage-length=0
Cross G++ Linker:-L"C:\R\R-2.15.1\library" -shared
Cross G++ linker Miscellaneous
Tab:"C:\R\R-2.15.1\bin\i386\R.dll""C:\R\R-2.15.1\library\Rcpp\lib\i386\libRcpp.a""C:\R\R-2.15.1\library\RInside\lib\i386\libRInside.a"
The console loads up just fine.
Inside the "MyCppPackage" project the files dont contain bug icons or red
underlines which I guess means that the script files pick up the functions, the
libraries must be references correctly I suppose?
And here comes my problem(s):R CMD CHECK returns ... OK for most lines and at
the end says " Hmm ... looks like a package" the only error it gives is Error
in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
pdflatex is not availableand Error in running tools::texi2pdf
R CMD INSTALL / R CMD BUILD return 158 errors (but sometimes INSTALL works
anyway). These errors are mostly of the same type:Description:'x' was not
declared in this scope
ResourceMyCppPackage
Path(Blank)
Locationline xyz, external location:
C:\R\R-2.15.1\library\Rcpp\include\Rcpp\string.h
TypeC/C++ Problem
If I want to attach a reproducible example, do I just attach the entire
"MyCppPackage" project? I have attached the build log file.
Any advice would be greatly appreciated.
00:15:30 **** Incremental Build of configuration Debug for project MyCppPackage
****
make all
Building file: ../src/main.cpp
Invoking: Cross G++ Compiler
g++ -DINSIDE -I"C:\R\R-2.15.1\include" -I"C:\R\R-2.15.1\library\Rcpp\include"
-I"C:\R\R-2.15.1\library\Rcpp\include\Rcpp"
-I"C:\R\R-2.15.1\library\RInside\include" -O0 -g3 -Wall -c -fmessage-length=0
-MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.cpp"
In file included from C:\R\R-2.15.1\include/R_ext/RS.h:24:0,
from C:\R\R-2.15.1\include/R.h:44,
from C:\R\R-2.15.1\library\Rcpp\include/RcppCommon.h:35,
from C:\R\R-2.15.1\library\Rcpp\include/Rcpp.h:27,
from ../src/main.cpp:2:
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:53:17: error: 'internal' does
not name a type
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:66:21: error: expected ')'
before 'charsxp'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:71:23: error: 'StringProxy'
does not name a type
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:71:36: error: ISO C++ forbids
declaration of 'proxy' with no type [-fpermissive]
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:99:23: error: expected ')'
before 'x'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:104:35: error: declaration of
'operator=' as non-function
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:104:32: error: expected ';' at
end of member declaration
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:104:41: error: expected ')'
before 'x'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:107:35: error: declaration of
'operator=' as non-function
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:107:32: error: expected ';' at
end of member declaration
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:107:40: error: expected ')'
before 'x'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:108:41: error: 'StringProxy'
does not name a type
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:108:54: error: ISO C++ forbids
declaration of 'proxy' with no type [-fpermissive]
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:166:42: error: 'StringProxy'
does not name a type
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:166:55: error: ISO C++ forbids
declaration of 'proxy' with no type [-fpermissive]
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:174:36: error: declaration of
'operator+=' as non-function
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:174:32: error: expected ';' at
end of member declaration
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:174:41: error: expected ')'
before 'x'
In file included from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/cwchar:46:0,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h:42,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/iosfwd:42,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/ios:39,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/ostream:40,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/iterator:64,
from C:\R\R-2.15.1\library\Rcpp\include/RcppCommon.h:65,
from C:\R\R-2.15.1\library\Rcpp\include/Rcpp.h:27,
from ../src/main.cpp:2:
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/wchar.h:12:32:
error: expected '}' before end of line
In file included from C:\R\R-2.15.1\include/R_ext/RS.h:24:0,
from C:\R\R-2.15.1\include/R.h:44,
from C:\R\R-2.15.1\library\Rcpp\include/RcppCommon.h:35,
from C:\R\R-2.15.1\library\Rcpp\include/Rcpp.h:27,
from ../src/main.cpp:2:
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String()':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:56:20: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:56:38: error: 'Rf_mkChar' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:56:43: error: class
'Rcpp::String' does not have any field named 'buffer'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:56:53: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:56:66: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In copy constructor
'Rcpp::String::String(const Rcpp::String&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:61:40: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:61:52: error: 'const class
Rcpp::String' has no member named 'get_sexp'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:61:65: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:61:78: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(const int&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:71:45: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:71:57: error: request for
member 'get' in 'proxy', which is of non-class type 'const int'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:71:66: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:71:79: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(const string&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:76:41: error: class
'Rcpp::String' does not have any field named 'buffer'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:76:52: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:76:66: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(const wstring&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:80:42: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:80:47: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:80:76: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:80:89: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(const char*)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:85:34: error: class
'Rcpp::String' does not have any field named 'buffer'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:85:45: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:85:59: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(const wchar_t*)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:89:37: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:89:42: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:89:71: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:89:84: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(int)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:95:27: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:95:33: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:95:52: error: 'INTSXP' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:95:59: error: 'STRSXP' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:95:73: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:95:86: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(double)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:96:30: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:96:36: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:96:55: error: 'REALSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:96:63: error: 'STRSXP' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:96:77: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:96:90: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(bool)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:97:28: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:97:34: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:97:53: error: 'LGLSXP' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:97:60: error: 'STRSXP' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:97:74: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:97:90: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In constructor
'Rcpp::String::String(Rcomplex)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:98:32: error: class
'Rcpp::String' does not have any field named 'data'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:98:38: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:98:57: error: 'CPLXSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:98:65: error: 'STRSXP' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:98:79: error: class
'Rcpp::String' does not have any field named 'valid'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:98:94: error: class
'Rcpp::String' does not have any field named 'buffer_ready'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(int)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:102:48: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:102:55: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:102:74: error: 'INTSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:102:82: error: 'STRSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:102:97: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:102:112: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(double)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:103:48: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:103:55: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:103:74: error: 'REALSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:103:82: error: 'STRSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:103:97: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:103:112: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(bool)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:105:48: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:105:55: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:105:74: error: 'LGLSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:105:82: error: 'STRSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:105:97: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:105:112: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(Rcomplex)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:106:48: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:106:55: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:106:74: error: 'CPLXSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:106:82: error: 'STRSXP' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:106:97: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:106:112: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(const int&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:108:62: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:108:75: error: request for
member 'get' in 'proxy', which is of non-class type 'const int'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:108:83: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:108:98: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(const Rcpp::String&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:109:58: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:109:71: error: 'const class
Rcpp::String' has no member named 'get_sexp'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:109:84: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:109:99: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(const string&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:110:59: error: 'buffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:110:72: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:110:88: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator=(const char*)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:111:51: error: 'buffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:111:64: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:111:80: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::assign_wide_string(const T&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:116:13: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:116:20: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:117:13: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:118:13: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator+=(const string&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:129:23: error: 'is_na' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:130:23: error: 'setBuffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:130:27: error: 'buffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:130:41: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator+=(const char*)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:135:23: error: 'is_na' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:136:23: error: 'setBuffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:136:27: error: 'buffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:136:41: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::append_wide_string(const T&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:143:21: error: there are no
arguments to 'setData' that depend on a template parameter, so a declaration of
'setData' must be available [-fpermissive]
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:143:21: note: (if you use
'-fpermissive', G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:144:23: error: there are no
arguments to 'is_na' that depend on a template parameter, so a declaration of
'is_na' must be available [-fpermissive]
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:145:37: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:145:42: error: there are no
arguments to 'CHAR' that depend on a template parameter, so a declaration of
'CHAR' must be available [-fpermissive]
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:146:53: error: there are no
arguments to 'strlen' that depend on a template parameter, so a declaration of
'strlen' must be available [-fpermissive]
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:148:20: error: 'internal' has
not been declared
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:149:13: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:150:13: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator+=(const Rcpp::String&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:161:23: error: 'is_na' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:162:23: error: 'const class
Rcpp::String' has no member named 'is_na'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:162:34: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:162:41: error: 'NA_STRING' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:162:53: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:162:68: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:163:23: error: 'setBuffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:163:27: error: 'buffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:163:45: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::operator+=(const int&)':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:168:23: error: 'is_na' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:169:13: error: 'SEXP' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:169:18: error: expected ';'
before 'proxy_sexp'
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:170:17: error: 'proxy_sexp'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:170:31: error: 'NA_STRING' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:170:45: error: 'data' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:170:64: error: 'valid' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:170:78: error: 'buffer_ready'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:171:23: error: 'setBuffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:171:27: error: 'buffer' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:171:42: error: 'proxy_sexp'
was not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:171:52: error: 'CHAR' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:171:56: error: 'valid' was not
declared in this scope
In file included from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/cwchar:46:0,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h:42,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/iosfwd:42,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/ios:39,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/ostream:40,
from
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/iterator:64,
from C:\R\R-2.15.1\library\Rcpp\include/RcppCommon.h:65,
from C:\R\R-2.15.1\library\Rcpp\include/Rcpp.h:27,
from ../src/main.cpp:2:
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/wchar.h:
At global scope:
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/wchar.h:12:32:
error: expected unqualified-id before end of line
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/wchar.h:12:32:
error: expected '}' before end of line
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/wchar.h:12:32:
error: expected declaration before end of line
In file included from C:\R\R-2.15.1\include/R_ext/RS.h:24:0,
from C:\R\R-2.15.1\include/R.h:44,
from C:\R\R-2.15.1\library\Rcpp\include/RcppCommon.h:35,
from C:\R\R-2.15.1\library\Rcpp\include/Rcpp.h:27,
from ../src/main.cpp:2:
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::append_wide_string(const T&) [with T =
std::basic_string<wchar_t>, Rcpp::String = Rcpp::String]':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:156:90: instantiated from
here
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:143:13: error: 'setData' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:144:13: error: 'is_na' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:145:42: error: 'CHAR' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:146:55: error: 'strlen' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:146:55: error: 'tmp' has
incomplete type
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h: In member function
'Rcpp::String& Rcpp::String::append_wide_string(const T&) [with T = const
wchar_t*, Rcpp::String = Rcpp::String]':
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:157:85: instantiated from
here
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:143:13: error: 'setData' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:144:13: error: 'is_na' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:145:42: error: 'CHAR' was not
declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:146:55: error: 'strlen' was
not declared in this scope
C:\R\R-2.15.1\library\Rcpp\include\Rcpp/string.h:146:55: error: 'tmp' has
incomplete type
make: *** [src/main.o] Error 1
00:15:32 Build Finished (took 2s.87ms)
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel