What about using em++ rather than emcc? 

On Thursday, March 20, 2014 3:23:47 PM UTC-6, Jian Cheng wrote:
>
> Hi,
>
> I am new in emscripten. I would like to link emscripten with some 
> libraries. 
> However my codes have a lot of linking errors. 
> After reading 
> https://github.com/kripken/emscripten/wiki/Building-Projects
> I still cannot solve my problems. 
>
> To make the question simple, I made a small hello_world example, where 
> there is one class in hello_lib.h and hello_lib.cxx, and one main function 
> in hello_lib_test.cxx. 
>
> [jcheng@jcW530 hello]$ emcc  hello_lib_test.cxx -o 
> hello_lib_test.bc                                                             
>                                                                               
>                               
>
> [jcheng@jcW530 hello]$ emcc  hello_lib.cxx -o hello_lib.bc
> [jcheng@jcW530 hello]$ emcc hello_lib.bc hello_lib_test.bc -o 
> hello_lib_test.html
> warning: unresolved symbol: _ZN6helloCC1Ev
> warning: unresolved symbol: _ZN6helloCD1Ev
>
> I cannot link hello_lib_test with hello_lib, and the output in 
> hello_lib_test.html is not correct (it showed -1)
> Is there any tutorial for this? Thanks.
>
> best,
> Jian Cheng
>

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