Skip to content

Example programme does not run: 32-bit ystem #3

@worikgh

Description

@worikgh

I tried to compile the programme from here. I expect the problem is that I am on a 32-bit system

error[E0308]: mismatched types                                                                                                                                           
   -->~/.cargo/registry/src/github.com-1285ae84e5963aae/rtmidi-0.2.0/src/midi_in.rs:185:74
    |
185 |         let timestamp = unsafe { ffi::rtmidi_in_get_message(self.0, ptr, &mut length) };
    |                                  --------------------------              ^^^^^^^^^^^ expected `u32`, found `u64`
    |                                  |
    |                                  arguments to this function are incorrect
    |
    = note:    expected raw pointer `*mut u32`
            found mutable reference `&mut u64`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions