Emscripten - passing libraries
I am compiling a main C project for firefox OS via Emscripten which has dependency on another crypto library C project.I was able to generate crypto.js file for it.When I am trying to compile main C project, I am getting below warnings.How do I pass the crypto library file(crypto.js) in order to avoid multiple warnings such as below with Emscripten? warning: unresolved symbol: curve25519_shared warning: unresolved symbol: crecip_donna warning: unresolved symbol: fmul_donna
One option would be to generate .bc file of your crypto project and then statically link with your main project ie provide the path of crypto.bc file as a parameter when envoking emcc for your main project. This is the recommended way for maximizing performance and minimizing size as per emscripten docs.
How to include multiple emscripten libraries with multiple preloaded MEMFS filesystems
Declaring multi-element array within EM_ASM_INT breaks compilation
How to wrap or call a C function with void as return in Emscripten?
Do you have to free strings passed to exported C functions in Emscripten?
Remove data file in FS module Emscripten
Getting Emscripten streaming audio to work
Trying to get asm.js to return a typed array
Call a function, with array parameter
Emscripten error when binding class with 2D double array
Compile issue with Emscripten on Windows 7
Interaction with C++ classes in Emscripten
Recommended environment for Emscripten full language compile
Emscripting a mfc program using visual studio 2010
EMScripten fails to build sample project
Error when im trying to convert cpp with std includes using Emscripten