[capnproto] Use Capn , Link with static libraries Failed ,But Link with dynamics libraries Success

2019-10-11 Thread 张小
Hi,Kenton: I like capnp, I use Capn ,Link with static libraries( use .a) Failed ,Error Like this ERROR: x/BUILD:6:1: Linking of rule '//:test_capn' failed (Exit 1) capnp/lib/libcapnpc.a(schema-parser.o):schema-parser.c++:function capnp::ParsedSchema::findNested(kj::StringPtr) const: er

[capnproto] Re: Use Capn , Link with static libraries Failed ,But Link with dynamics libraries Success

2019-10-11 Thread 张小
nm -C libcapnpc.a |grep SchemaLoader|grep 'get(' U capnp::SchemaLoader::get(unsigned long, capnp::schema::Brand::Reader, capnp::Schema) const nm -C libcapnp.a |grep SchemaLoader|grep 'get(' 4250 T capnp::SchemaLoader::get(unsigned long, capnp::schema::Brand::Reader,

[capnproto] Re: Use Capn , Link with static libraries Failed ,But Link with dynamics libraries Success

2019-10-11 Thread 张小
it seems libcapn.a and libcapnc.a conflict ? 在 2019年10月11日星期五 UTC+8下午7:12:26,张小写道: > > > nm -C libcapnpc.a |grep SchemaLoader|grep 'get(' > U capnp::SchemaLoader::get(unsigned long, > capnp::schema::Brand::Reader, capnp::Schema) const > > nm -C libcapnp.a |grep SchemaLoader|grep

[capnproto] Re: Use Capn , Link with static libraries Failed ,But Link with dynamics libraries Success

2019-10-11 Thread 张小
Hi,Kenton: Is there a bazel for capnp v0.7.0? thanks whutbd 在 2019年10月11日星期五 UTC+8下午3:47:39,张小写道: > > Hi,Kenton: > I like capnp, I use Capn ,Link with static libraries( use .a) Failed > ,Error Like this > > ERROR: x/BUILD:6:1: Linking of rule '//:test_capn' failed (Exit 1) > cap

[capnproto] Re: Use Capn , Link with static libraries Failed ,But Link with dynamics libraries Success

2019-10-11 Thread 张小
bazel link *.a in Lexicographic order,how can I change it bazel-out/k8-fastbuild/bin/_objs/test_capn/demo/test_capn_serialize_performance.pic.o bazel-out/k8-fastbuild/bin/_objs/test_capn/demo/full_info.capnp.pic.o capnp/lib/libcapnp.a capnp/lib/libcapnpc.a capnp/lib/libkj.a -lstdc++ -lm 在 20

Re: [capnproto] Re: Use Capn , Link with static libraries Failed ,But Link with dynamics libraries Success

2019-10-11 Thread 'Kenton Varda' via Cap'n Proto
Hi, Sorry, I do not know how to control Bazel's linker command line order. Maybe it would help to define three separate cc_library rules for the three libraries, with the dependencies between them specified -- maybe Bazel will then recognize the dependency relationship and do the ordering correctl