You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to add a path to the snap7 .dll as a constant string and use that everytime I called a function. I got the program to compile and run, but it's not connecting to my PLC yet.
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.
The text was updated successfully, but these errors were encountered: