Can't compile example from google protocol buffers

后端 未结 3 1157
囚心锁ツ
囚心锁ツ 2020-12-16 16:31

I grep for other topics, but they dont help me =(. On my working server, i have no sudo privilegies, so i install PB with

./configure --prefix=/home/u

3条回答
  •  执笔经年
    2020-12-16 17:08

    Library linking flags go at the end of the compiler's arguments:

    g++ -I /home/username/local/include -L /home/username/local/lib main.cpp person.pb.cc -lprotobuf -lpthread

提交回复
热议问题