JoshOrndorff / utxo-workshop

A Substrate UTXO workshop
The Unlicense
117 stars 81 forks source link

startercode cargo check utxo-runtime error #85

Closed motomoto-254 closed 3 years ago

motomoto-254 commented 3 years ago
cargo check -p utxo-runtime Compiling utxo-runtime v2.0.0-alpha.5 (C:\Users\Mwaki\utxo-workshop\runtime) Checking parity-util-mem v0.6.0 error[E0308]: mismatched types --> C:\Users\Mwaki.cargo\registry\src\github.com-1ecc6299db9ec823\parity-util-m\allocators.rs:76:30 76 if HeapValidate(heap, 0, ptr) == 0 { ^^^ expected enum winapi::ctypes::cd enumstd::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\Mwaki.cargo\registry\src\github.com-1ecc6299db9ec823\parity-util-m\allocators.rs:80:23 80 HeapSize(heap, 0, ptr) as usize ^^^ expected enum winapi::ctypes::c_void,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

any help to solve the above error would be highly appreciated.

ical10 commented 3 years ago

I've encountered the same issue. Have you been able to fix this @motomoto-254 ? I'd appreciate any pointers, thank you.

motomoto-254 commented 3 years ago

I didn't solve the problem, i changed my approach. So i started the tutorial on the official substrate website with rust to get up n running with the rust language n substrate dev. Link to the website: https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/index

bhavesh20-mb commented 2 years ago

yes same problem please help,any solution ?

motomoto-254 commented 2 years ago

Hi, sorry to disappoint. I haven't followed up, though from the website it explains the set up of your "work station" i think i got it wrong from the start. They have updated the website, you could get more help from there.. https://docs.substrate.io

On Wed, 15 Dec 2021, 13:54 bhavesh20-mb, @.***> wrote:

yes same problem please help,any solution ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/substrate-developer-hub/utxo-workshop/issues/85#issuecomment-994672533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOCJU3MCTHXPVICWEI2DC5TURBXU7ANCNFSM45ZETFBA .