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

C 程序包含nebd/src/part1/libnebd.h时产生编译错误 #646

Closed
skypexu opened this issue Nov 9, 2021 · 0 comments
Closed

C 程序包含nebd/src/part1/libnebd.h时产生编译错误 #646

skypexu opened this issue Nov 9, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@skypexu
Copy link
Member

skypexu commented Nov 9, 2021

Describe the bug (描述bug)
C程序包含头文件nebd/src/part1/libnebd.h时产生编译错误, 错误原因是因为C语言不象C++自动为struct定义类型,
在C语言里, struct要成为类型名,需要typedef.

To Reproduce (复现方法)
在C程序里包含libnebd.h

Expected behavior (期望行为)
无编译错误

Versions (各种版本)
OS:Linux pubbeta2-curve7.dg.163.org 4.9.65-netease #1 SMP Thu Jul 11 17:32:39 CST 2019 x86_64 GNU/Linux
Compiler:gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
curve-mds: master
curve-chunkserver: master
curve-snapshotcloneserver: master
curve-sdk: master
nebd: master
curve-nbd: master

Additional context/screenshots (更多上下文/截图)

@skypexu skypexu added the bug Something isn't working label Nov 9, 2021
@skypexu skypexu changed the title C 程序包含时nebd/src/part1/libnebd.h产生编译错误 C 程序包含nebd/src/part1/libnebd.h时产生编译错误 Nov 9, 2021
@skypexu skypexu closed this as completed Nov 9, 2021
ilixiaocui pushed a commit to ilixiaocui/curve that referenced this issue Feb 6, 2023
…dding ToC for README. Adding LFX links to selected projects (opencurve#646)

Signed-off-by: Nate W <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant