Skip to content

R_CPPFLAGS / R_CXXFLAGS ? #14

@crowding

Description

@crowding

Build failed on my system (OSX 10.14, r-devel; clang) with the following:

clang++ -std=gnu++11 -I"/usr/local/Cellar/r/devel_1/lib/R/include" -DNDEBUG  -I'/usr/local/lib/R/3.7/site-library/Rcpp/include' -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -mtune=core2 -O3  -fPIC  -O3   -c alter.cpp -o alter.o
In file included from alter.cpp:1:
./r_trie.h:2:10: fatal error: 'radix.h' file not found
#include <radix.h>
         ^~~~~~~~~
1 error generated.

I found this was resolved by editing src/Makevars to read:

PKG_CPPFLAGS=-I../inst/include

Where the original had PKG_CXXFLAGS (I'm not sure the difference)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions