Skip to content
Prev 1790 / 10988 Next

[Rcpp-devel] R.e. Debugging Rcpp packages with GDB

On Tue, Jan 18, 2011 at 6:19 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
Or create a file $HOME/.R/Makevars and define CXXFLAGS and CFLAGS in
there.  I have the following contents

CFLAGS= -g -pipe -std=gnu99 -Wall -pedantic
CFLAGS= -g -O3 -pipe -std=gnu99 -Wall -pedantic
CXXFLAGS= -g -pipe -Wall -pedantic
CXXFLAGS= -g -pipe -std=c++0x -Wall -pedantic
CXXFLAGS= -g -O3 -pipe -Wall -pedantic
CXXFLAGS= -g -O3 -pipe -std=c++0x -Wall -pedantic

and comment out the trailing lines if I want to suppress the c++0x
standard or the optimization when using the debugger.