> 'gsl/gsl_math.h' file not found. You probably need to add an -I/path/to/gsl when building that source file.
> link it in with your main c++ You can provide multiple inputs to emcc. For example, emcc main.cpp library1.bc library2.so That will compile one cpp file and link it with two libraries. Practically in your example, just add libgsl.a to the emcc arguments. (Note that for files like libgsl.so.23.1.0 emcc may warn about the suffix being unfamiliar - you can just rename the file to avoid that.) On Mon, Sep 3, 2018 at 11:00 AM Peter <[email protected]> wrote: > Thank you for your replay. > I found a file in hidden directory ./libs > I contains libgsl.a and libgsl.so.23.1.0 > When i compile my project to .a is it good to use libgsl.so? > > as you told i moved libgsl.so to my project: > > "$emcc" libgsl.so libat.a -o libat.html -s WASM=1 -s > EXPORTED_FUNCTIONS="$funs" \ > -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' > > > 1. I still get error that 'gsl/gsl_math.h' file not found. > You was talking about "link it in with your main c++ " > I don't get it how ;/ > I want my library also be as most C as it can be so I want to link it > without changing file by file, (i use C) > > 2. EXPORTED_FUNCRTIONS, is there a flag to export all functions or i have > to create this by my own? > > > > -- > 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.
