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

Problem compiling with clang on Windows #177

Closed
jeroen opened this issue Oct 10, 2023 · 0 comments · Fixed by #178
Closed

Problem compiling with clang on Windows #177

jeroen opened this issue Oct 10, 2023 · 0 comments · Fixed by #178

Comments

@jeroen
Copy link
Member

jeroen commented Oct 10, 2023

Testing with clang on arm64 on Windows we see:

** libs
using C compiler: 'clang version 16.0.5'
using C++ compiler: 'clang version 16.0.5'
clang++ -std=gnu++17  -I"C:/PROGRA~1/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I'C:/Users/jeroen/AppData/Local/R/win-library/4.4/Rcpp/include'   -I"/c/msys64/home/jeroen/aarch64-w64-mingw32.static.posix/include"     -O2 -Wall    -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:5:
In file included from C:/Users/jeroen/AppData/Local/R/win-library/4.4/Rcpp/include/Rcpp.h:38:
C:/Users/jeroen/AppData/Local/R/win-library/4.4/Rcpp/include/Rcpp/Environment.h:91:24: error: no matching function for call to 'R_lsInternal'
                return R_lsInternal( env, all ? TRUE : FALSE ) ;
                       ^~~~~~~~~~~~
C:/PROGRA~1/R/R-devel/include/Rinternals.h:533:6: note: candidate function not viable: no known conversion from 'int' to 'Rboolean' for 2nd argument
SEXP R_lsInternal(SEXP, Rboolean);
     ^
1 error generated.
make: *** [C:/PROGRA~1/R/R-devel/etc/Makeconf:289: RcppExports.o] Error 1
ERROR: compilation failed for package 'later'
* removing 'C:/Users/jeroen/AppData/Local/R/win-library/4.4/later'

Previous topics in RcppCore/Rcpp#1148 and RcppCore/Rcpp#897 suggest a likely issue is something is included that redefines TRUE, probably in your windows.h include: https://stackoverflow.com/a/5663743/318752

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

Successfully merging a pull request may close this issue.

1 participant