подскажите - как правильно разрешить использовать память
exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
Uncaught RuntimeError: memory access out of bounds
в CMakeLists.txt
add_executable(${PROJECTNAME} ${SRCS})
set_target_properties(${PROJECTNAME} PROPERTIES SUFFIX .html)
set(link_flags "-s TOTAL_MEMORY=256MB -s ALLOW_MEMORY_GROWTH=1 --no-heap-copy")
set(link_flags "${link_flags} --preload-file ${CMAKE_SOURCE_DIR}/resources")
set_target_properties(${PROJECTNAME} PROPERTIES LINK_FLAGS ${link_flags})
что еще может не хватать?