Skip to content

hello_driver.cpp - "no mapping for imported function" #9

@mikelik

Description

@mikelik

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions