You need to make the file available to JS - by default, emscripten output cannot access local files, just like a web page cannot. See
https://github.com/kripken/emscripten/wiki/Filesystem-Guide - Alon On Wed, Mar 5, 2014 at 11:49 AM, wowi <[email protected]> wrote: > Anyone have any ideas on why this might not be working. Again hello works > fine but not files.cpp. Some more info on my system: > > OSX Mavericks 10.9.1 > > Emsdk info: > ./emsdk list > > > The following individual tools exist: > > * clang-3.2-64bit INSTALLED > > clang-3.3-64bit > > * node-0.10.18-64bit INSTALLED > > emscripten-1.5.6 > > emscripten-1.7.1 > > emscripten-1.7.8 > > * emscripten-1.8.2 INSTALLED > > emscripten-incoming > > emscripten-master > > > > The following Emscripten SDK versions are available: > > sdk-incoming-64bit > > sdk-master-64bit > > sdk-1.5.6-64bit > > sdk-1.7.1-64bit > > sdk-1.7.8-64bit > > * sdk-1.8.2-64bit INSTALLED > > Thanks in advance > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
