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

error: ‘numeric_limits’ is not a member of ‘std’ #148

Open
echometerain opened this issue Oct 25, 2021 · 1 comment · May be fixed by #149
Open

error: ‘numeric_limits’ is not a member of ‘std’ #148

echometerain opened this issue Oct 25, 2021 · 1 comment · May be fixed by #149

Comments

@echometerain
Copy link

sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp:304:36: error: ‘numeric_limits’ is not a member of ‘std’
  304 |                 case 1: ma = (std::numeric_limits<unsigned char>::max)();
      |                                    ^~~~~~~~~~~~~~
sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp:304:51: error: expected primary-expression before ‘unsigned’
  304 |                 case 1: ma = (std::numeric_limits<unsigned char>::max)();
      |                                                   ^~~~~~~~
sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp:304:51: error: expected ‘)’ before ‘unsigned’
  304 |                 case 1: ma = (std::numeric_limits<unsigned char>::max)();
      |                              ~                    ^~~~~~~~
      |                                                   )
sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp:306:36: error: ‘numeric_limits’ is not a member of ‘std’
  306 |                 case 2: ma = (std::numeric_limits<unsigned short>::max)();
      |                                    ^~~~~~~~~~~~~~
sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp:306:51: error: expected primary-expression before ‘unsigned’
  306 |                 case 2: ma = (std::numeric_limits<unsigned short>::max)();
      |                                                   ^~~~~~~~
sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp:306:51: error: expected ‘)’ before ‘unsigned’
  306 |                 case 2: ma = (std::numeric_limits<unsigned short>::max)();
      |                              ~                    ^~~~~~~~
      |                                                   )
sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp:383:33: warning: format not a string literal and no format arguments [-Wformat-security]
  383 |                         fl_alert( err.c_str() );
      |                         ~~~~~~~~^~~~~~~~~~~~~~~
make[1]: *** [Makefile:2792: sources/libcpp83gts_callback_and_action/libgts_la-fl_gl_image_view.lo] Error 1

Fails on Ubuntu Impish unless #include <limits> is added to /sources/libcpp83gts_callback_and_action/fl_gl_image_view.cpp

@echometerain echometerain changed the title Error in building error: ‘numeric_limits’ is not a member of ‘std’ Oct 25, 2021
@tidux
Copy link

tidux commented Mar 11, 2022

This is causing a fail to build from source on most modern Linux distributions and should be considered a hard blocker for any future releases.

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.

2 participants