Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mytests
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songxinkai
mytests
Commits
19579d97
Commit
19579d97
authored
Jan 15, 2020
by
songxinkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~
parent
ed5434c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
c++/protobuf/CMakeLists.txt
+1
-0
c++/protobuf/test_0.cpp
+1
-1
No files found.
c++/protobuf/CMakeLists.txt
View file @
19579d97
...
...
@@ -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"
)
...
...
c++/protobuf/test_0.cpp
View file @
19579d97
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment