Skip to content

‘GFLAGS_NS’ has not been declared #2874

Description

@haoyouxiaoju

/usr/include/butil/reloadable_flags.h: In function ‘bool butil::RegisterFlagValidatorOrDieImpl(const T*, bool ()(const char, T))’:
/usr/include/butil/reloadable_flags.h:63:9: error: ‘GFLAGS_NS’ has not been declared
63 | if (GFLAGS_NS::RegisterFlagValidator(flag, validate_fn)) {
|

从我的下载的gflags里面查找没有GFLAGS_NS,只看到了GFLAGS_NAMESPACE
/usr/include/gflags/gflags.h: GFLAGS_NAMESPACE::RegisterFlagValidator(&FLAGS_##name, validator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugthe code does not work as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions