Skip to content

compile error: google has not been declared #3

Closed

Description

@liudf0716

following this article:
https://github.com/brpc/brpc/blob/master/docs/cn/getting_started.md
I encounter the following compiling error:

image

Activity

  1. chenzhangyi commented on Sep 15, 2017

    @chenzhangyi
    Member

    It seems that gflags has modified its namespace from google to gflags (see gflags/gflags#145).
    We will resolve this in the future, right now you'd better use an old version of gflags(before 2.2) to compile brpc.
    Sorry for the inconvenience.

  2. jamesge commented on Sep 19, 2017

    @jamesge
    Contributor

    This issue should be solved at HEAD, need to be confirmed by @liudf0716 config_brpc.sh must be re-run before re-compilation.

  3. liudf0716 commented on Sep 20, 2017

    @liudf0716
    Author

    in my centos7 platform

    git pull
    sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64
    Fail to find google/profiler.h from --headers
    

    it's my recent report.

  4. jamesge commented on Sep 20, 2017

    @jamesge
    Contributor

    gperftools changes its dir and namespace from google to gperftools in newer versions, try to manually change google to gperftools in source code temporarily. We'll verify this problem.

  5. jamesge commented on Sep 20, 2017

    @jamesge
    Contributor

    @liudf0716 check again

  6. liudf0716 commented on Sep 20, 2017

    @liudf0716
    Author

    @jamesge It's ok now. :+1:

  7. liudf0716 commented on Sep 20, 2017

    @liudf0716
    Author

    I have a suggestion:
    how about support cmake way to compile brpc?

  8. jamesge commented on Sep 20, 2017

    @jamesge
    Contributor

    will support

  9. added a commit that references this issue on Mar 9, 2026
  10. added a commit that references this issue on Mar 18, 2026
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

    enhancementimprovements on existing features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions