facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.05k stars 537 forks source link

Fail to compile on Fedora 20 #16

Closed qyouurcs closed 8 years ago

qyouurcs commented 8 years ago

Hello,

I have tried different versions of gflags (also changing default namespace from gflags to google). However, I still receive the following error.

Platform: Fedora 20

wangle-0.13.0/wangle/service/ServiceTest.cpp:327:3: error: ‘ParseCommandLineFlags’ is not a member of ‘google’
qyouurcs commented 8 years ago

I checked the header file of gflags and have found the function ParseCommandLineFlags as well as in glfags.cc.

I successfully solve the problem by adding

#include <gflags/gflags.h>

in ServiceTest.cpp