MAKEFLAGS='CXXFLAGS=-std=c++0x -O2' R CMD SHLIB
passes two items, 'CXXFLAGS=-std=c++0x' and '-O2', not the single item
'CXXFLAG=-std=c++0x -O2', to make. Suitably recent versions of GNU
make take the make argument -O2 to control the 'output-sync'.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
Thanks a lot, indeed it worked using the Makevars file. I still do not
understand why the command-line input fails but so be it.
One more quick question: if I include the Makevars file in my package code
then the requested flags are used every time somebody installs my package
in his system. Howev
On 10 January 2017 at 11:55, Costas Tsirogiannis wrote:
| Greetings and thanks for previously offered solutions,
|
| I am developing a package that makes use of C++ code, and I want to compile
| this code for testing reasons with the "R CMD SHLIB" command. Using Ubuntu
| and gcc 5.4, and because
Greetings and thanks for previously offered solutions,
I am developing a package that makes use of C++ code, and I want to compile
this code for testing reasons with the "R CMD SHLIB" command. Using Ubuntu
and gcc 5.4, and because for certain reasons I have to use the c++0x
standard, I try the fol