-
Notifications
You must be signed in to change notification settings - Fork 730
Closed
Description
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
Labels
No labels