2017-11-28 19:56 GMT+08:00 wang Yu <yuwang668...@gmail.com>:
> i am fresh man in osv, and i have a question about it;
> if we have some dyminic library .so, i want to how to run?
> for example, a.so have main enter, and it want to call the func_b()
> in b.so(we don't want to recompile it)
> a.c --->a.so
> extern void func_b(void)
> void main(void)
> {
>   ...
>    func_b();
>    ...
> }
>
> b.c--->b.so
> void func_b(void)
> {
>   ....
> }
>
> i have edit  module.py  like this
>
> ```
> from osv.modules import api
>
> default = api.run('/a.so')
> ````
> usr.manifest
> a.so:${MODULE_DIR}/a.so
> b.so:${MODULE_DIR}/b.so
>
> but when running, it can't look func_b()
>
> and i have the same question about server jar
> a.jar b.jar c.jar
> a.jar have the main, it depend on b.jar and c.jar
> i use like this cannot find b.jar and c.jar's function
> default = api.run("/java.so -jar a.jar ");

i know how to do in java,  api.run("/java.so -cp ./ -jar a.jar "); can do it;
but how i do in c/c++?

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to