Program with protocol-buffers don't compile with MinGW-w64: “undefined reference to google::protobuf:: …”

后端 未结 1 1485
死守一世寂寞
死守一世寂寞 2021-01-24 16:49

I have installed the libprotobuf-dev=2.6.0-4 and protobuf-compiler=2.6.0-4 packages from Debian Jessie repository. Now I\'m trying to compile a program

相关标签:
1条回答
  • 2021-01-24 17:07

    libprotobuf-dev contains library headers and pre-built binaries for your system. If you are cross-compiling you need to compile library from sources to target system as well. Something like "./configure CC=i686-w64-mingw32-g++" in library sources directory should do the job.

    0 讨论(0)
提交回复
热议问题