[capnproto] Linker error: struct capnp::_::RawSchema const capnp::schemas

2021-05-10 Thread Pratik Mankawde
Hi, I am getting this linking error on VS2019. LNK2001 unresolved external symbol struct capnp::_::RawSchema const capnp::schemas I saw that there are other threads discussing similar error but the solution mentioned in them didn't work for me. I am linking against following libs in order: ca

Re: [capnproto] Linker error: struct capnp::_::RawSchema const capnp::schemas

2021-05-10 Thread 'Kenton Varda' via Cap'n Proto
Hi Pratik, When you run the Cap'n Proto code generator, it produces two files: a header (ending in `.capnp.h`) and a source file (ending in `.capnp.c++`). Did you make sure to compile the source file into your project? I'm guessing the missing symbol is from there, since it seems to be something

Re: [capnproto] Linker error: struct capnp::_::RawSchema const capnp::schemas

2021-05-10 Thread Pratik Mankawde
Yeah, you were right, although `.capnp.c++` was added to the project, it was still not getting compiled. VS was ignoring '.c++' extension for compilation. Thanks for the help. On Monday, 10 May, 2021 at 8:09:13 pm UTC+5:30 ken...@cloudflare.com wrote: > Hi Pratik, > > When you run the Cap'n