TsuITOAR / visa-rs

High-level Rust bindings to VISA(Virtual Instrument Software Architecture)
Apache License 2.0
18 stars 4 forks source link

error[E0308]: mismatched types #3

Closed fbordwell closed 1 year ago

fbordwell commented 1 year ago

Building in both versions 0.4.0 and 0.5.0 gives the following error on Ubuntu 22.04:

error[E0308]: mismatched types
  --> /home/fbordwell/.cargo/git/checkouts/visa-rs-657bd5cc4c91eb01/a805029/src/flags.rs:12:25
   |
12 |         const NO_LOCK = vs::VI_NO_LOCK;
   |                         ^^^^^^^^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
  --> /home/fbordwell/.cargo/git/checkouts/visa-rs-657bd5cc4c91eb01/a805029/src/flags.rs:13:32
   |
13 |         const EXCLUSIVE_LOCK = vs::VI_EXCLUSIVE_LOCK;
   |                                ^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
  --> /home/fbordwell/.cargo/git/checkouts/visa-rs-657bd5cc4c91eb01/a805029/src/flags.rs:14:29
   |
14 |         const SHARED_LOCK = vs::VI_SHARED_LOCK;
   |                             ^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
  --> /home/fbordwell/.cargo/git/checkouts/visa-rs-657bd5cc4c91eb01/a805029/src/flags.rs:15:29
   |
15 |         const LOAD_CONFIG = vs::VI_LOAD_CONFIG;
   |                             ^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `visa-rs` due to 4 previous errors
fbordwell commented 1 year ago

Platform issue, fixed by rebinding VISA library.

TsuITOAR commented 1 year ago

Sorry I haven't checked this repository for a while, this should be fixed by visa-sys version 0.1.5