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

helper_functions.cpp: error: 'isfinite' was not declared in this scope; did you mean 'std::isfinite'? #565

Closed
barracuda156 opened this issue Mar 26, 2023 · 1 comment

Comments

@barracuda156
Copy link

helper_functions.cpp: In function 'bool is_double(std::string)':
helper_functions.cpp:292:30: error: 'isfinite' was not declared in this scope; did you mean 'std::isfinite'?
  292 |   if (isBlankString(endp) && isfinite(res)) {
      |                              ^~~~~~~~
      |                              std::isfinite
In file included from /opt/local/include/LegacySupport/cmath:54,
                 from /opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100,
                 from /opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include/Rcpp/r/headers.h:62,
                 from /opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include/RcppCommon.h:30,
                 from openxlsx2_types.h:8,
                 from openxlsx2.h:1,
                 from helper_functions.cpp:1:
/opt/local/include/gcc12/c++/cmath:578:5: note: 'std::isfinite' declared here
  578 |     isfinite(_Tp __x)
      |     ^~~~~~~~
make: *** [helper_functions.o] Error 1
@JanMarvin
Copy link
Owner

Thanks!

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