I followed the website assembly tutorial http://webassembly.org/getting-started/developers-guide/
It worked great and displayed "Hello world!" message in the browser.
Then I tried a small C ++ code that opens a text file and performs the calculation (10 * 20) after reading the file.
emcc compiled the file just fine, no errors.
But when I serve the file via HTTP by running emrun, it cannot open the file.
This is what I see on the emrun web console:
Unable to open file 200
Are there any restrictions on opening files from a local drive?
[ thiago@terra hello]$ cat pfile.cpp
c ++ webassembly emscripten
Thiago silvino
source share