0

Currently I am my writing cpp app on MingW which uses protobuf. But during compilation, it shows lots of linker errors, saying

undefined reference to google::protobuf::internal

and

undefined reference to google::protobuf::message.

I have already included -L/path/to/lib/ -lprotobuf in gcc.

But still not working..
Any input?

user1228352
  • 539
  • 5
  • 16

1 Answers1

0

Make shure you followed the installtion stepps correctly: How to build Google's protobuf in Windows using MinGW?

Especially take a look at 5., --prefix part:

The --prefix paramater makes sure protobuf is installed in the mingw directory tree instead of the MSYS directories, so you can build outside the MSYS shell

Community
  • 1
  • 1
ollo
  • 24,053
  • 13
  • 97
  • 150