Pon la biblioteca al final:
g++ -I /home/nombre de usuario/local/include -L /home/nombre de usuario/local/lib main.cpp person.pb.cc -lprotobuf -pthread
Desde las opciones de enlace de GCC:
-llibrary
-l library
Search the library named library when linking.
(The second alternative with the library as a separate argument
is only for POSIX compliance and is not recommended.)
It makes a difference where in the command you write this option;
the linker searches and processes libraries and object files in the
order they are specified.
Thus, `foo.o -lz bar.o' searches library `z' after file foo.o but
before bar.o. If bar.o refers to functions in `z', those functions
may not be loaded.
Además, use -pthread en lugar de -lpthread como -pthread puede establecer indicadores para el preprocesador y el enlazador.
Los indicadores de enlace de biblioteca van al final de los argumentos del compilador:
g++ -I /home/nombre de usuario/local/include -L /home/nombre de usuario/local/libmain.cpp person.pb.cc -lprotobuf -lpthread