ultra-pool / utxo-workshop

A Substrate UTXO workshop
The Unlicense
0 stars 0 forks source link

Install error on Windows #20

Open ultra-pool opened 3 years ago

ultra-pool commented 3 years ago
   Compiling sp-runtime-interface v2.0.0-alpha.5
error[E0308]: mismatched types
  --> C:\Users\ultra\.cargo\registry\src\github.com-1ecc6299db9ec823\parity-util-mem-0.6.0\src\allocators.rs:76:30
   |
76 |                 if HeapValidate(heap, 0, ptr) == 0 {
   |                                          ^^^ expected enum `winapi::ctypes::c_void`, found enum `std::ffi::c_void`
   |
   = note: expected raw pointer `*const winapi::ctypes::c_void`
              found raw pointer `*const std::ffi::c_void`

error[E0308]: mismatched types
  --> C:\Users\ultra\.cargo\registry\src\github.com-1ecc6299db9ec823\parity-util-mem-0.6.0\src\allocators.rs:80:23
   |
80 |                 HeapSize(heap, 0, ptr) as usize
   |                                   ^^^ expected enum `winapi::ctypes::c_void`, found enum `std::ffi::c_void`
   |
   = note: expected raw pointer `*const winapi::ctypes::c_void`
              found raw pointer `*const std::ffi::c_void`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
error: could not compile `parity-util-mem`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed