Want to use an emscripten library in a browser project compiled with 
emscripten.  When I try I get 

ERROR in ./app/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./main.js in 
/home/gap/Pm/Tooling/app
 @ ./app/index.js 3:0-20

Even though I am not using the file system.  Here are my simplified files.

main.cpp
    #include <emscripten/emscripten.h>
    #include <emscripten/bind.h>
    
    extern "C" {
        const char *test() { return "Testing"; } 
    }

index.js 
    import './main.js'

I compiled it with 

    em++ -std=c++11 main.cpp --memory-init-file 0 -s NO_FILESYSTEM=1 -s 
NO_EXIT_RUNTIME=1 -s EXPORTED_FUNCTIONS="['_test']" -o main.js

Thanks for looking

     -Gary




-- 
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