Hey guys

I just ran into an issue where I was seeing unresolved externals when using 
Emscripten to transpile my test c++ file to JS. After digging for a while, 
I figured out that the order of includes of the .a files is important. For 
example, if you have 2 static libraries foo.a and bar.a, and bar.a has a 
dependency on foo.a, you must necessarily specify bar.a before foo.a when 
passing in command line arguments to emcc.

In the example above,
emcc foo.a bar.a test.o -o test.js will produce unresolved externals while
emcc bar.a foo.a test.o -o test.js will not.

Is this a known issue? I can provide more specifics if needed.

Thanks!
-Arnab

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