Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R_CPPFLAGS / R_CXXFLAGS ? #14

Open
crowding opened this issue Oct 12, 2019 · 1 comment
Open

R_CPPFLAGS / R_CXXFLAGS ? #14

crowding opened this issue Oct 12, 2019 · 1 comment

Comments

@crowding
Copy link

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)

@Ironholds
Copy link
Owner

Me either. Wanna throw a patch in to just, well, add both? :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants