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

missing constant macros in cfenv #13678

Closed
3d4m-volodymyr opened this issue Mar 16, 2021 · 5 comments
Closed

missing constant macros in cfenv #13678

3d4m-volodymyr opened this issue Mar 16, 2021 · 5 comments

Comments

@3d4m-volodymyr
Copy link

3d4m-volodymyr commented Mar 16, 2021

Im trying to compile POCO library.

/Users/vb/.conan/data/poco/1.9.4/_/_/build/17b1c44219fa6b9ce0c40649cb01e9910fbd31f1/source_subfolder/Foundation/include/Poco/FPEnvironment_C99.h:42:28: error: use of undeclared identifier 'FE_DIVBYZERO'
                FP_DIVIDE_BY_ZERO_IMPL = FE_DIVBYZERO,
                                         ^
/Users/vb/.conan/data/poco/1.9.4/_/_/build/17b1c44219fa6b9ce0c40649cb01e9910fbd31f1/source_subfolder/Foundation/include/Poco/FPEnvironment_C99.h:43:28: error: use of undeclared identifier 'FE_INEXACT'
                FP_INEXACT_IMPL        = FE_INEXACT,
                                         ^
/Users/vb/.conan/data/poco/1.9.4/_/_/build/17b1c44219fa6b9ce0c40649cb01e9910fbd31f1/source_subfolder/Foundation/include/Poco/FPEnvironment_C99.h:44:28: error: use of undeclared identifier 'FE_OVERFLOW'
                FP_OVERFLOW_IMPL       = FE_OVERFLOW,
                                         ^
/Users/vb/.conan/data/poco/1.9.4/_/_/build/17b1c44219fa6b9ce0c40649cb01e9910fbd31f1/source_subfolder/Foundation/include/Poco/FPEnvironment_C99.h:45:28: error: use of undeclared identifier 'FE_UNDERFLOW'
                FP_UNDERFLOW_IMPL      = FE_UNDERFLOW,
                                         ^
/Users/vb/.conan/data/poco/1.9.4/_/_/build/17b1c44219fa6b9ce0c40649cb01e9910fbd31f1/source_subfolder/Foundation/include/Poco/FPEnvironment_C99.h:46:28: error: use of undeclared identifier 'FE_INVALID'
                FP_INVALID_IMPL        = FE_INVALID

Macros listed here:
http://www.cplusplus.com/reference/cfenv/

File in project https://github.com/emscripten-core/emscripten/blob/main/system/lib/libcxx/include/cfenv

Can those macroses be added to header?

@3d4m-volodymyr
Copy link
Author

@kripken
Copy link
Member

kripken commented Mar 17, 2021

Based on the discussion there, I think this must be changed in the source code of that project. It is ok for those macros to not be defined, and I think Emscripten is correct to not define them.

@3d4m-volodymyr
Copy link
Author

I thought it's part of C++11 standard. Can we trust this source ?

@3d4m-volodymyr
Copy link
Author

Ok, does not look like a standard.

@3d4m-volodymyr
Copy link
Author

Sorry, I should been spend more time reading thread. Now I got the idea. :)

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