Skip to content

Build failed. gflags has not been declared. #26

Closed

Description

@fanzeyi
[ 71%] Building CXX object CMakeFiles/ConnectionManagerTest.dir/acceptor/test/ConnectionManagerTest.cpp.o
/home/vagrant/wangle/wangle/acceptor/test/ConnectionManagerTest.cpp: In function ‘int main(int, char**)’:
/home/vagrant/wangle/wangle/acceptor/test/ConnectionManagerTest.cpp:202:3: error: ‘gflags’ has not been declared
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   ^
make[2]: *** [CMakeFiles/ConnectionManagerTest.dir/acceptor/test/ConnectionManagerTest.cpp.o] Error 1
make[1]: *** [CMakeFiles/ConnectionManagerTest.dir/all] Error 2
make: *** [all] Error 2

Workaround

Add #include <gflags/gflags.h> to wangle/acceptor/test/ConnectionManagerTest.cpp.

Activity

  1. ghost added a commit that references this issue on Jan 21, 2016
  2. ZJU-PLP commented on Aug 12, 2018

    @ZJU-PLP

    good point!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions