Closed renkun-ken closed 10 years ago
Does attributes::sourceCpp( "test.cpp", verbose = TRUE )
give you more information ?
> attributes::sourceCpp("test.cpp",verbose = T)
C:/PROGRA~1/R/R-31~1.0/bin/x64/R CMD SHLIB "file195441a750d.cpp"
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-31~1.0/etc/x64/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-31~1.0/etc/x64/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
g++ -m64 -std=c++0x -I"C:/PROGRA~1/R/R-31~1.0/include" -DNDEBUG -I"C:/Users/Kun/Documents/R/win-library/3.1/Rcpp11/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c file195441a750d.cpp -o file195441a750d.o
In file included from C:/Users/Kun/Documents/R/win-library/3.1/Rcpp11/include/Rcpp.h:58:0,
from C:/Users/Kun/Documents/R/win-library/3.1/Rcpp11/include/Rcpp11:4,
from file195441a750d.cpp:1:
C:/Users/Kun/Documents/R/win-library/3.1/Rcpp11/include/Rcpp/internal/interrupt.h:4:24: fatal error: Rinterface.h: No such file or directory
compilation terminated.
make: *** [file195441a750d.o] Error 1
Warning message:
running command 'make -f "C:/PROGRA~1/R/R-31~1.0/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-31~1.0/share/make/winshlib.mk" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="file195441a750d.dll" WIN=64 TCLBIN=64 OBJECTS="file195441a750d.o"' had status 2
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Users/Kun/AppData/Local/Temp/RtmpmGIMFg/file195441a750d.dll':
LoadLibrary failure: The specified module could not be found.
In addition: Warning message:
running command 'C:/PROGRA~1/R/R-31~1.0/bin/x64/R CMD SHLIB "file195441a750d.cpp"' had status 1
Thanks. This helps. I'll try to reproduce it on my local windows machine today.
I believe this was fixed by this commit in Rcpp11. https://github.com/Rcpp11/Rcpp11/commit/e66445f53409dac13c9af0cf73a481b1742fc716
Please update Rcpp11 and try again.
The problem no longer exists! Thanks!
In RStudio
which ends up in error:
But the default RCpp template can compile with Rcpp without problem.
My session info:
What might be the problem here?