【发布时间】:2017-06-08 17:44:54
【问题描述】:
我以这种方式编译了Rust GTK examples:
$ cargo build --features gtk_3_10
当我尝试运行示例时,出现错误:
$ cargo run --bin gtktest
Compiling gtk-rs-examples v0.0.1 (file:///home/me123/rust/gtk_examples)
Finished dev [unoptimized + debuginfo] target(s) in 0.39 secs
Running `target/debug/gtktest`
This example only work with GTK 3.10 and later
Did you forget to build with `--features gtk_3_10`?
如何解决?
【问题讨论】:
-
请注意:您不需要在
cargo run之前手动执行cargo build。cargo run会在需要时自动构建,并传递您提供的相关标志。
标签: rust