Hi,

I am new to emscripten and have a few questions.

My setup is the following: I have a C++ encryption library that depends on 
two other libraries, GMP and NTL. I would like to call a program that uses 
this encryption library from JavaScript source. If I understand correctly, 
all three of my libraries have to be ported in order to be able to do that. 
I ported all three libraries using emconfigure and emmake, so I have 3 
javascript files now: gmp.js, ntl.js and fhe.js (this is the one I want to 
use).

Now I have a program that uses this FHE library. I want to expose it's 
"main" function so it can be called with arguments from JavaScript.

Here is what confuses me:
In order to compile a program (without emscripten) that uses this FHE 
library, I have to run the following command:

g++ -g -O2  -o helloWorld helloWorld.cpp fhe.a -L/usr/local/lib -lntl -lgmp 
-lm


I am lost since I can't figure out how exactly to link these ported 
libraries together. I know it's probably completely wrong, but I tried this:

em++ -g -O2  -o helloWorld helloWorld.cpp fhe.a -L/usr/local/lib -lntl -lgmp 
 -lm -I/usr/local/include


and it gives me 20+ errors regarding the use of "undeclared identifiers".

I appreciate any advice and help. 
Thank you in advance,
M.B

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