Timeline for How to compile uint with single quotes?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 2, 2019 at 18:21 | comment | added | Gassa |
Actually, modern C++ allows single quotes as digit separators, just for readability: 1'000'000'000 is more readable than 1000000000 . For example, here it says that, since C++14, Optional single quotes(') may be inserted between the digits as a separator. They are ignored by the compiler. So perhaps changing the compiler options from -std=c++11 to -std=c++14 will help.
|
|
Mar 5, 2019 at 12:28 | comment | added | yilin wang |
and i know const static uint32_t default_max_block_cpu_usage = 200'000; can be compile success in config.hpp by eos.io's project.but don't know how!
|
|
Mar 5, 2019 at 12:26 | comment | added | yilin wang | just want compile a test program and this code include contract_types.hpp.thank you! | |
Mar 5, 2019 at 11:20 | comment | added | tmm♦ | Do you want to compile a smart contract or the EOS.IO Software for running a chain? | |
Mar 5, 2019 at 2:44 | comment | added | yilin wang |
g++ -o main main.cpp -I~/eosio/eos/libraries/fc/include -I~/eosio/eos/libraries/chain/include -I~/eosio/eos/libraries/chainbase/include -I~/eosio/eos/libraries/wasm-jit/Include -std=c++11
|
|
Mar 5, 2019 at 2:43 | comment | added | yilin wang |
i just want in main.cpp add include #include <eosio/chain/contract_types.hpp>
|
|
Mar 4, 2019 at 10:49 | comment | added | tmm♦ | What is the compile command you are using? | |
Mar 4, 2019 at 1:46 | comment | added | yilin wang |
this code is in ~/eosio/eos/libraries/chain/include/eosio/chain/config.hpp ,and it can be compile by eos,i don't know how to do.
|
|
Mar 3, 2019 at 17:00 | history | answered | tmm♦ | CC BY-SA 4.0 |