Questions tagged [eosiocpp]
Questions about the deprecated (old) eosiocpp compiler tool. These are different from the new Version eosio-cpp.
6
questions with no upvoted or accepted answers
1
vote
0answers
18 views
unordered map in eosio-cpp
I want to have an unordered_map inside a table so that I can have O(1) entry and retrieval. Can someone please link me to a snippet which implements that? I am new to cpp.
1
vote
2answers
194 views
EOS Block Producer Schedule
I have followed the Boot Bios sequence of eosio and setup a eos private blockchain. The problem is my even though i have created also Block producers and also voted for them still the blocks are ...
1
vote
0answers
57 views
Why can eosiocpp not do normal operations on std::vector<std::string>?
I have two types:
struct typeA {
std::vector<std::string> vec;
}
struct typeB {
std::vector<std::string> vec;
}
but I can't seem to get the 2 vecs to mix as eosiocpp seems to be ...
1
vote
1answer
65 views
How do I use C++11 on Mac?
I tried the hello world sample contract, and when it came time to compile, I got this error:
hello.cpp:10:10: error: expected ']'
[[eosio:action]]
^
...
0
votes
1answer
52 views
How can i convert a time_point to a string?
I want to convert a time_point variable to a string using eos studio. I need to insert a time_point variable in a string in order to creare the object of my smart contract.
0
votes
1answer
168 views
How can I create a table in an .hpp for a general contract? (Using the CDT)
THE STRUCTURE OF MY PROJECT
I am working in mycontract.cpp, which imports myheader.hpp
WHAT I WANT
I want to create a table in myheader.hpp, for a generic contract, "IN THEORY" as follows:
struct [...