From gianluca.mastrantonio at yahoo.it  Thu Jul  4 09:34:06 2013
From: gianluca.mastrantonio at yahoo.it (gianluca mastrantonio)
Date: Thu, 4 Jul 2013 09:34:06 +0200
Subject: [Rd] R-devel Digest, Vol 125, Issue 2
In-Reply-To: <mailman.19.1372759206.15721.r-devel@r-project.org>
References: <mailman.19.1372759206.15721.r-devel@r-project.org>
Message-ID: <E5C33C8D-6FE1-421C-AAEA-FCC6FC5258BA@yahoo.it>

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



[Rd] R-devel Digest, Vol 125, Issue 2
gianluca mastrantonio