Skip to content

windows下用rust编译eadb报error[E0425] #13

@LiShuai1225

Description

@LiShuai1225

$ cargo build
Compiling eadb v0.1.5 (E:\eadb)
error[E0425]: cannot find function getuid in crate libc
--> src\build_image.rs:68:30
|
68 | let uid = unsafe { libc::getuid() };
| ^^^^^^ help: a function with a similar name exists: getpid
|
::: C:\Users.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\libc-0.2.126\src\windows\mod.rs:474:5
|
474 | pub fn getpid() -> ::c_int;
| --------------------------- similarly named function getpid defined here

For more information about this error, try rustc --explain E0425.
error: could not compile eadb due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions