Heap out of bounds, error code Some("IC0502") on C++ code run

Got it finally, “-Wl,-z,stack-size=1048576” was added to cpp_link_flags_defaults to increase stack size (clang defaults to a limited stack size when building wasm).
Many thanks @abk & @icpp , now we have a fully working physics engine running on ICP :fire:

1 Like