byzhang / server1

Automatically exported from code.google.com/p/server1
1 stars 0 forks source link

build error: 'ParseCommandLineFlags' is not a member of 'google' #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start build using scons
2.
3.

What is the expected output? What do you see instead?
Successful build

What version of the product are you using? On what operating system?
Revision: 117

Please provide any additional information below.
Machine to build on:
CentOS release 5.7 (final) 32bit
gcc 4.1.2

Following error is reported while building:
g++ -o build/server/rpc_test.o -c -march=i486 -g -static -Ibuild -I. 
-I/root/work/server1/third_party/boost/include/boost-1_39 
-I/root/work/server1/third_party/gflags/include 
-I/root/work/server1/third_party/glog/include 
-I/root/work/server1/third_party/protobuf/include 
-I/root/work/server1/third_party/protobuf/include/google 
-I/root/work/server1/third_party/gtest/include server/rpc_test.cpp
server/rpc_test.cpp:40: error: expected constructor, destructor, or type 
conversion before '(' token
server/rpc_test.cpp:41: error: expected constructor, destructor, or type 
conversion before '(' token
server/rpc_test.cpp:42: error: expected constructor, destructor, or type 
conversion before '(' token
server/rpc_test.cpp:43: error: expected constructor, destructor, or type 
conversion before '(' token
server/rpc_test.cpp:44: error: expected constructor, destructor, or type 
conversion before '(' token
server/rpc_test.cpp: In member function 'virtual void EchoTest::SetUp()':
server/rpc_test.cpp:73: error: 'FLAGS_num_threads' was not declared in this 
scope
server/rpc_test.cpp:77: error: 'FLAGS_server' was not declared in this scope
server/rpc_test.cpp:77: error: 'FLAGS_port' was not declared in this scope
server/rpc_test.cpp: In function 'int main(int, char**)':

Original issue reported on code.google.com by asif.fay...@gmail.com on 8 May 2013 at 8:42

cambricon-shaonan commented 7 years ago

i think you need to use the DECLARE(port),DECLARE(server),