Hi Alon,

You hit the nail squarely on the head.

Works like a charm!

Thank you

On Sunday, December 24, 2017 at 4:36:34 PM UTC+1, Alon Zakai wrote:
>
>
>
> On Sun, Dec 24, 2017 at 5:21 AM, ChrisBe <[email protected] 
> <javascript:>> wrote:
>
>> Hi there,
>>
>> I'm totally new to emscripten and trying to run through this Google I/O 
>> 2017 tutorial  
>> <https://codelabs.developers.google.com/codelabs/web-assembly-intro>where 
>> we are building a Mandelbrot viewer
>>
>> Anyway I'm getting this error at runtime in the browser:
>>
>> "*'addOnPostRun' was not exported. add it to 
>> EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)*"
>>
>> So I looked at the FAQ and it says:
>>
>> Why do I get TypeError: Module.someThing is not a function?
>>> The Module object will contain exported methods. For something to 
>>> appear there, you should add it to EXPORTED_FUNCTIONS for compiled 
>>> code, or EXTRA_EXPORTED_RUNTIME_METHODS for a runtime method (like 
>>> getValue).
>>
>>
>> I tried adding *-s* *EXTRA_EXPORTED_RUNTIME_METHODS=['addOnPostRun'] * to 
>> the emscripten compile flags but then it wouldn't compile
>>
>>
> I think this might be a quoting issue. Perhaps try
>
> -s "EXTRA_EXPORTED_RUNTIME_METHODS=['addOnPostRun']"
>
> (with double quotes around the entire second argument). Whether you need 
> quoting or what kind depends on the shell, whether it's a shell script or 
> not, etc., I'm not really sure of the rules. I just add quotes til it works 
> ;)
>  
>
>> Then I tried adding Module.
>> *EXTRA_EXPORTED_RUNTIME_METHODS.unshift('addOnPostRun') *in my 
>> index.html, but still no use.
>>
>>
>> I realize this is something totally obvious, but I'm going around in 
>> circles here.
>>
>>
>> Any chance someone please tell me what the heck I'm doing wrong
>>
>>
>> Thank you and Merry Xmas eve!
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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