Closed grindhold closed 7 years ago
okay, nevermind. rust 1.0.0 is really outdated and i use 1.18 now which ships with my debian testing. however i still only get this far:
error[E0308]: mismatched types
--> src/foo/mod.rs:78:13
|
78 | / connect(
79 | | self.to_glib_none().0,
80 | | "incremented",
81 | | transmute(incremented_trampoline::<Self> as usize),
82 | | Box::into_raw(f) as *mut _,
83 | | )
| |_____________^ expected u64, found struct `glib::SignalHandlerId`
|
= note: expected type `u64`
found type `glib::SignalHandlerId`
error[E0308]: mismatched types
--> src/bar/mod.rs:71:13
|
71 | / connect(
72 | | self.to_glib_none().0,
73 | | "notify::number",
74 | | transmute(notify_number_trampoline as usize),
75 | | Box::into_raw(f) as *mut _,
76 | | )
| |_____________^ expected u64, found struct `glib::SignalHandlerId`
|
= note: expected type `u64`
found type `glib::SignalHandlerId`
error: aborting due to 2 previous errors
error: Could not compile `gobject-example`.
To learn more, run the command again with --verbose.
Makefile:30: recipe for target 'target/debug/libgobject_example.so' failed
make: *** [target/debug/libgobject_example.so] Error 101
Is still still an issue related to my compiler version? i find it a bit strange, because gsignal-handler-ids are in fact uint64
Thanks for reporting, this was caused by an API change in glib-rs
thanks for fixing!
the problem below the line has been resolved by installing a newer cargo version and rust compiler.
with
and
i receive
when entering a random string as name, (as nothing depends on the lib we build, it should not matter, right?), i receive this:
Is my setup hopelessly outdated or what am i doing wrong?