hello_driver.cpp - "no mapping for imported function"
Opened this issue · 1 comments
mikelik commented
When I compile and run hello_driver.cpp
and removing memset
from the example I get the error that: no mapping for imported function
for at least 3 functions:
set_blockchain_parameters_packed
get_blockchain_parameters_packed
set_proposed_producers
get_active_producers
Exception is thrown from eosio/vm/host_function.hpp:463
.
Used leap v3.2.3, CDT v3.2.0.
Example output if I remove try catch
from hello_driver.cpp
:
mikel@msi:~/repo/eos-vm/build/tools$ ./hello-driver 1 2 3
terminate called after throwing an instance of 'eosio::vm::wasm_link_exception'
what(): wasm linked function failure
Aborted (core dumped)
mikelik commented
@larryk85 created a workaround here: https://github.com/larryk85/examples-for-eos-vm
Basically, above functions are implemented and mapped in the example contract.
In the long term, we need to fix the above issue, so the user doesn't have to map those functions.
This issue should be solved when AntelopeIO/cdt#189 will be done.