-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Undeclared identifier isfinite
when compiling with GCC 5.4 stdlib
#509
Comments
Do you have a fix? I'm not running Linux. |
I also had a similar compilation failure/error message, but was able to fix by replacing the offending line in "b2Math.h" with:
Compiler version is [g++ (tdm-1) 5.1.0] on Windows 7 64-bit. EDIT: this might not be the correct fix...will check out further. |
This compiles and links with the changes to "b2Math.h":
|
Also occurs while cross compiling for ARM using: The above workaround from mightymos allows it to compile and run successfully. |
(as recommended by @mightymos on erincatto#509)
Currently building fine on Linux via travis-ci. |
Test script
Test output
Under GCC 5.4
cmath
in the gcc standard libraryundef
sisfinite
but does not provide the corresponding global function. You can see additional discussion on a similar issue in swig/swig#615.Godbolt for quick reference showing compilation failure on GCC 5.4 but not other compilers/platforms. The important part is actually the stdlib in use as opposed to the compiler, as I discovered this while using clang with the stdlib on my platform (Ubuntu 16.04.3).
The text was updated successfully, but these errors were encountered: