标签: bindgen

Rust Bindgen 在构建时导致“不是有效的 Ident”错误

有谁知道如何开始调试这个 Rust bindgen 缩进问题?

stderr thread 'main' panicked at '"vpx_codec_ctx_union_(unnamed_at_/usr/include/vpx/_/vpx_codec_h_206_3)" is not a valid Ident', /home/ignis/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.59/src/fallback.rs:811:9

这是引用 libvpx 标头的这一部分:

/*!\brief Codec context structure
 *
 * All codecs \ref MUST support this context structure fully. In general,
 * this data should be considered private to the codec algorithm, and
 * not be manipulated or examined by the calling application. Applications
 * may reference the 'name' member to get a printable description of the
 * algorithm.
 */
typedef struct vpx_codec_ctx {
  const …
Run Code Online (Sandbox Code Playgroud)

clang rust bindgen

4
推荐指数
1
解决办法
1339
查看次数

标签 统计

bindgen ×1

clang ×1

rust ×1