c++ - Package compilation dynamic library loading error -


i wrapping small c++ program in r using rcpp, , checked beforehand c++ code compiling directly g++ 4.8.4 without warnings or errors. there no external librairies, stl used.

when compile package in rstudio devtools, obtain following error:

 updating perseusr documentation loading perseusr error in dyn.load(dllfile) :    unable load shared object '/home/leonid/documents/programmation/perseusr project/perseusr/src/perseusr.so':   /home/leonid/documents/programmation/perseusr project/perseusr/src/perseusr.so: undefined symbol: _z9lexicoposlllrst6vectorilsailee calls: suppresspackagestartupmessages ...  -> load_all -> load_dll -> library.dynam2 -> dyn.load execution halted  exited status 1. 

it seems compilation fine , there problem loading of dynamic libraries. in undefined symbol, lexicopos name of function in c++ code.

any ideas on how solve problem?

if home-grown attempt fails, suggest start created example: call rcpp.package.skeleton() , compare files creates have.

maybe forgot required line in namespace, maybe -- cannot tell information supplied.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -