Commit 19579d97 by songxinkai

~

parent ed5434c0
......@@ -4,6 +4,7 @@ project (test_0)
set(CMAKE_BUILD_TYPE Release)
# !!! -pthread: Protobuf needs this !!!
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -pthread")
set(protobuf_include_dir "/home/songxinkai/protobuf-3.11.2/src")
......
......@@ -29,7 +29,7 @@ int main(){
cout << "2" << endl;
google::protobuf::TextFormat::ParseFromString(conf_ss.str(), &Pigs);
cout << "3" << endl;
cout << Pigs.count() << endl;
cout << Pigs.count() << ", " << Pigs.sight() << ", " << endl;
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment