Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘GFLAGS_NS’ has not been declared #2874

Open
haoyouxiaoju opened this issue Jan 14, 2025 · 1 comment · May be fixed by #2877
Open

‘GFLAGS_NS’ has not been declared #2874

haoyouxiaoju opened this issue Jan 14, 2025 · 1 comment · May be fixed by #2877
Labels
bug the code does not work as expected

Comments

@haoyouxiaoju
Copy link

/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)

@chenBright chenBright added the bug the code does not work as expected label Jan 14, 2025
@chenBright
Copy link
Contributor

修复中

@chenBright chenBright linked a pull request Jan 15, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the code does not work as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants