我正在尝试阅读 Rust编程语言。我已经从GitHub克隆了存储库,并说要通过mdbook
安装cargo install mdbook --vers 0.1.7
。当我这样做时,我从编译backtrace
中收到错误消息。我在做什么错了?
第一条错误消息是:
error[E0308]: mismatched types --> /home/martin/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.12/src/symbolize/libbacktrace.rs:156:60
|
156 | STATE = bt::backtrace_create_state(ptr::null(), 0, error_cb,
| ^^^^^^^^ expected enum `std::os::raw::c_void`, found enum `libc::c_void`
|
= note: expected type `extern "C" fn(*mut std::os::raw::c_void, *const i8, i32)`
found type `extern "C" fn(*mut libc::c_void, *const i8, i32) {symbolize::libbacktrace::error_cb}`