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

errors during compilation #17

Open
jayhesselberth opened this issue Sep 24, 2016 · 0 comments
Open

errors during compilation #17

jayhesselberth opened this issue Sep 24, 2016 · 0 comments

Comments

@jayhesselberth
Copy link

I get errors during compilation with gcc < 6.0 (gcc >=6.0 and clang++ are fine).

C:/Rtools/mingw_32/bin/g++  -std=c++0x -I"c:/R/include" -DNDEBUG -I../inst/include   -I"c:/RLibrary/Rcpp/include" -I"c:/RLibrary/BH/include" -I"c:/RLibrary/dplyr/include" -I"d:/Comp
In file included from ../inst/include/valr.h:6:0,
                 from RcppExports.cpp:4:
../inst/include/IntervalTree.h: In constructor 'IntervalTree<T, K>::IntervalTree(IntervalTree<T, K>::intervalVector&, std::size_t, std::size_t, K, K, std::size_t)':
../inst/include/IntervalTree.h:148:37: error: use of 'this' in a constant expression
                 if (interval.stop < center) {
                                     ^
../inst/include/IntervalTree.h:148:30: error: parse error in template argument list
                 if (interval.stop < center) {
                              ^
make: *** [RcppExports.o] Error 1

Any ideas? Might be related to #16?

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

1 participant