Skip to content

Ubuntu 编译 C 解密程序报错 #1213

@porum

Description

@porum

[ 97%] Building C object CMakeFiles/decode_log_file.dir/decode_log_file.c.o
[ 97%] Building C object CMakeFiles/decode_log_file.dir/micro-ecc-master/uECC.c.o
/home/xxx/Documents/mars/mars/xlog/crypt/decode_log_file_c_impl/decode_log_file.c: In function ‘zstdDecompress’:
/home/xxx/Documents/mars/mars/xlog/crypt/decode_log_file_c_impl/decode_log_file.c:212:13: error: ‘lastPos’ undeclared (first use in this function)
212 | if (lastPos == output.pos) {
| ^~~~~~~
/home/xxx/Documents/mars/mars/xlog/crypt/decode_log_file_c_impl/decode_log_file.c:212:13: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/decode_log_file.dir/build.make:63:CMakeFiles/decode_log_file.dir/decode_log_file.c.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [CMakeFiles/Makefile2:99:CMakeFiles/decode_log_file.dir/all] 错误 2
make: *** [Makefile:130:all] 错误 2

### Tasks
- [ ] https://github.com/Tencent/mars/pull/1214

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions