apache / apache/brpc

用brpc的flag v会提示引用找不到

Open
#2,599 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

**Describe the bug (描述bug)**
在其他的文件中DECLARE_int32(v); 但是用的时候会提示找不到引用,在cmake里已经link了brpc和gflag

**To Reproduce (复现方法)**

**Expected behavior (期望行为)**

**Versions (各种版本)**
OS:
Compiler:
brpc:
protobuf:

**Additional context/screenshots (更多上下文/截图)**
![image](https://github.com/apache/brpc/assets/35927727/0c98f9bb-ac05-47b0-8142-73f8169d1dce)

![image](https://github.com/apache/brpc/assets/35927727/4b99b28f-9473-4787-b732-2aa403594e89)
![image](https://github.com/apache/brpc/assets/35927727/797f182f-09ad-49eb-baa2-b8381e7f762e)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the DECLARE_int32(v) reference from another file with the reported CMake links to brpc and gflag. Inspect the CMake configuration and compiler or linker output; the issue is done when the reference resolves in the consuming file.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.