Here's my code (I removed most of it):
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

const char* parse(uint8_t *buf, size_t len) {
  
  return NULL;
}



emcc -s WASM=1 -s TOTAL_MEMORY=128MB \
    -s EXPORTED_FUNCTIONS="['_parse','_malloc']" \
    -s 
EXTRA_EXPORTED_RUNTIME_METHODS="['addFunction','getValue','ccall','writeArrayToMemory']"
 
\
    -o assets/wasm-dist/gifparser.html \
    -s MODULARIZE=1 \
    -s EXPORT_NAME="'gifparserModule'" \
    -s ENVIRONMENT=web \
    -s ALLOW_MEMORY_GROWTH=1 \
    wasm-src/gifparser.c

After removing most of my C code I now see:
wasm streaming compile failed: LinkError: WebAssembly Instantiation: Import 
#3 module="env" function="nullFunc_jiii" error: function import requires a 
callable



On Monday, March 4, 2019 at 5:43:19 PM UTC-8, Seán Hayes wrote:
>
> Does anyone have any idea what this means?
>  
>
>> wasm streaming compile failed: LinkError: WebAssembly Instantiation: 
>> Import #11 module="env" function="_emscripten_asm_const_iidd" error: 
>> function import requires a callable
>
>
> "_emscripten_asm_const_iidd" appears in my wasm but not in the JS 
> emscripten generates. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to