EOSIO / EOSIO/abieos

Build fails

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
35
Forks
45
PR merge metrics
No merged PRs in 30d

Description

With this error:

In file included from /home/anon/abieos/src/key_test.cpp:1:
/home/anon/abieos/include/eosio/to_key.hpp: In function ‘UInt eosio::float_to_key(T)’:
/home/anon/abieos/include/eosio/to_key.hpp:247:50: error: ‘numeric_limits’ is not a member of ‘std’
247 | UInt signbit = (static_cast(1) << (std::numeric_limits::digits - 1));
| ^~~~~~~~~~~~~~
/home/anon/abieos/include/eosio/to_key.hpp:247:69: error: expected primary-expression before ‘>’ token
247 | UInt signbit = (static_cast(1) << (std::numeric_limits::digits - 1));
| ^
/home/anon/abieos/include/eosio/to_key.hpp:247:72: error: ‘::digits’ has not been declared
247 | UInt signbit = (static_cast(1) << (std::numeric_limits::digits - 1));
| ^~~~~~
/home/anon/abieos/include/eosio/to_key.hpp: In function ‘void eosio::to_key(const T&, S&)’:
/home/anon/abieos/include/eosio/to_key.hpp:267:54: error: ‘numeric_limits’ is not a member of ‘std’
267 | v -= static_cast>(std::numeric_limits::min());
| ^~~~~~~~~~~~~~
/home/anon/abieos/include/eosio/to_key.hpp:267:70: error: expected primary-expression before ‘>’ token
267 | v -= static_cast>(std::numeric_limits::min());
| ^
/home/anon/abieos/include/eosio/to_key.hpp:267:73: error: ‘::min’ has not been declared; did you mean ‘std::min’?
267 | v -= static_cast>(std::numeric_limits::min());
| ^~~
| std::min

Is there a binary somewhere I can use?

Contributor guide

Open the contributing guide

Research direction

Start with include/eosio/to_key.hpp at the reported numeric_limits references and reproduce the failure through src/key_test.cpp. Run the project build and tests after the change; done means the reported compilation errors are gone and the build completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.