2012-12-17 78 views
0

我已經使用了以下手冊併爲rcpp設置了eclipse。如何在Ubuntu上設置Eclipse + StatET + Rcpp

http://blog.fellstat.com/?p=170

我可以對R建立包,但我得到以下錯誤,當我想調試它:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
unable to load shared object '/usr/lib/R/library/stats/libs/stats.so': 
libRlapack.so: cannot open shared object file: No such file or directory 
During startup - Warning message: 
package ‘stats’ in options("defaultPackages") was not found 
Error: could not find function "errorOccured" 
Execution halted 

我在Ubuntu用eclipse。

感謝

回答

0

我沒有檢查的十字G ++鏈接>共享庫設置共享選項。 之後,必須啓用-fPic(其他標誌)。

問題是我可以沒有錯誤地構建它,但仍然無法在eclipse中運行它! 它創建libMyCppPackage並希望運行MyCppPackage!

The program file specified in the launch configuration does not exist 
    /media/EXt4ENC/Rcpp/MyCppPackage/Debug/MyCppPackage not found 

ABD此鏈接不由得: http://hyperspec.wordpress.com/2012/05/07/ides/