Open qinwf opened 8 years ago
There is another package, which has some similar functions, will fail to be installed on 64bit R and it will work on 32bit R.
..... all fine
C:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o jiebaR.dll tmp.def RcppExports.o detect.o init.o segtype.o word_freq.o -LC:/Rbuild/R-devel-win32/extsoft/lib/i386 -LC:/Rbuild/R-devel-win32/extsoft/lib -LC:/PROGRA~1/R/R-EXPE~1/bin/i386 -lR
installing to D:/git/jiebaR.Rcheck/jiebaR/libs/i386
.... all fine
C:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o jiebaR.dll tmp.def RcppExports.o detect.o init.o segtype.o word_freq.o -LC:/Rbuild/R-devel-win64/extsoft/lib/x64 -LC:/Rbuild/R-devel-win64/extsoft/lib -LC:/PROGRA~1/R/R-EXPE~1/bin/x64 -lR
collect2.exe: error: ld returned 5 exit status
installing to D:/git/jiebaR.Rcheck/jiebaR/libs/x64
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
Error in inDL(x, as.logical(local), as.logical(now), ...) :
无法载入共享目标对象 (unable to load shared object) ‘D:/git/jiebaR.Rcheck/jiebaR/libs/x64/jiebaR.dll’::
LoadLibrary failure: %1 不是有效的 Win32 应用程序。(is not an valid Win32 application.)
错误: 载入失败
停止执行
ERROR: loading failed for 'x64'
* removing 'D:/git/jiebaR.Rcheck/jiebaR'
I have made a small package to replicate this issue. https://github.com/qinwf/testlocale .
For 32bit R it works fine. This function will remove punctuation in Chinese locale using c++11 regex with wstring.
For 64bit R.