You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Examples can be found in [CMakeLists.txt of linux platform](../product-mini/platforms/linux/CMakeLists.txt) and [other platforms](../product-mini/platforms). The available features to configure can be found in [Build WAMR vmcore](./build_wamr.md#wamr-vmcore-cmake-building-configurations).
28
33
@@ -31,6 +36,10 @@ Developer can also use Makefile to embed WAMR, by defining macros and including
31
36
## The runtime initialization
32
37
33
38
```C
39
+
#include"bh_platform.h"
40
+
#include"bh_read_file.h"
41
+
#include"wasm_export.h"
42
+
34
43
char *buffer, error_buf[128];
35
44
wasm_module_t module;
36
45
wasm_module_inst_t module_inst;
@@ -42,7 +51,7 @@ Developer can also use Makefile to embed WAMR, by defining macros and including
42
51
wasm_runtime_init();
43
52
44
53
/* read WASM file into a memory buffer */
45
-
buffer = read_wasm_binary_to_buffer(…, &size);
54
+
buffer = bh_read_file_to_buffer(…, &size);
46
55
47
56
/* add line below if we want to export native functions to WASM app */
0 commit comments