Hi all,

I have a problem but i am not sure that this is the right mailing list.

I'm writing a R program which call a C++ program, through the function .Call. I 
use to compile the c++ script with the command 

R CMD SHLIB   SpTempWrapC.cpp -Wall -l covmodel.h -l util.h

Everything works fine since, for mistake, i paste in the terminal the content  
of the r-script. Now, when i try to compile, i received the following error:

llvm-g++-4.2 -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_names 
-undefined dynamic_lookup -single_module -multiply_defined suppress 
-L/usr/local/lib -L/usr/local/lib -o SpTempWrapC.so SpTempWrapC.o -Wall -l 
covmodel.h -l util.h -F/Library/Frameworks/R.framework/.. -framework R 
-Wl,-framework -Wl,CoreFoundation
covmodel.h:15:20: error: iostream: No such file or directory
covmodel.h:16:18: error: string: No such file or directory
covmodel.h:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘namespace’
covmodel.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘covmodel’
util.h:12:20: error: iostream: No such file or directory
util.h:13:19: error: iomanip: No such file or directory
util.h:14:18: error: string: No such file or directory
util.h:15:19: error: sstream: No such file or directory
util.h:16:18: error: vector: No such file or directory
util.h:17:15: error: map: No such file or directory
util.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘namespace’
util.h:20:15: error: R.h: No such file or directory
util.h:21:19: error: Rmath.h: No such file or directory
util.h:22:24: error: Rinternals.h: No such file or directory
util.h:23:26: error: R_ext/Lapack.h: No such file or directory
util.h:24:24: error: R_ext/BLAS.h: No such file or directory
util.h:25:25: error: R_ext/Utils.h: No such file or directory
util.h:29: error: expected declaration specifiers or ‘...’ before ‘bool’

I also tried to reinstall R.

Thanks

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to