-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hello, I am new to Rust, so this maybe a stupid problem, but when I try to build your example program I get the following error:
error[E0061]: this function takes 1 argument but 0 arguments were supplied
--> src\main.rs:22:30
|
22 | handle: unsafe { LibSnap7::Cli_Create() },
| ^^^^^^^^^^^^^^^^^^^^-- an argument of type &snap7_sys::LibSnap7 is missing
|
note: method defined here
--> C:\Users\Timothey.Lemley\Documents\tooling\rust\simple\target\debug\build\snap7-sys-16ee191438d9eefb\out/bindings.rs:875:19
|
875 | pub unsafe fn Cli_Create(&self) -> S7Object {
| ^^^^^^^^^^
help: provide the argument
|
22 | handle: unsafe { LibSnap7::Cli_Create(/* &snap7_sys::LibSnap7 */) },
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I do not know what to do here.