It depends on the build system. Typically there would be a libgsl.a or libgsl.so file generated, which if you build using emconfigure/emmake, will contain LLVM bitcode (which you can confirm with the "file" shell command). The name might be different, though, may need to just see what is in a lib/ or bin/ directory, or if it emits other files in the root dir. Then once you have that bitcode, link it in with your main c++ (just add it as another input to emcc).
(a.out and a.out.js are probably temp files created during the configure step.) On Tue, Aug 28, 2018 at 10:20 AM Peter <[email protected]> wrote: > Hello, > > I am looking every where to find answear how to link propertly library to > my project. > > I want to use some function from GSL. > I downloaded GSL source and run: > ./emconfigure ./configure > ./emmake make > i got > ignoring dynamic library libgsl.so because no compiling to JS or HTML, > remember to link it when compiling to JS or html at the end > ignoring dynamic library libgslcblas.so because no compiling to JS or > HTML, remember to link it when compiling to JS or html at the end > > but i got some file a.out and a.out.js > > I want to use some function from GSL in C project > > like #include<gsl/gsl_math.h> > > i am using C_make there, > and i want it to compile project to JS > > What should i do next because I simply don't understand. > Should I use output file from GSL or compile it togheter? > > Sorry for taking you time and thx: > Peter > > -- > 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. > -- 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.
