Skip to content

bh_read_file.h isn't in any of the include paths. #4221

@Please-just-dont

Description

@Please-just-dont

Now can my program link to it. The tutorial has:


#include "bh_read_file.h"

buffer = bh_read_file_to_buffer(wasm_path, &buf_size);

I cannot include "bh_read_file.h" as it's not in any of the include paths. And if I manually find where it is and include that I get an undefined reference error because it's not linking to it.

In my CMake I do as the instructions say:


include (wasm-micro-runtime-main/build-scripts/runtime_lib.cmake)
add_library(vmlib ${WAMR_RUNTIME_LIB_SOURCE})
target_link_libraries(my_target PRIVATE vmlib)

How are the include directories even added? I have access to the normal wasm headers like wasm_runtime.h, but not others.

BTW, it's in:

core/shared/utils/uncommon/bh_read_file.h

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions