ultimate-research/skyline-rs

error: linking with `cc` failed when calling `hex_dump_ptr`

shinmao opened this issue · 0 comments

fn main() {
    let val: u32 = 3;
    hex_dump_ptr(&val as *const u32);
}

Hi, when I tried to test hex_dump_ptr function on my ubuntu host, it shows the error,

error: linking with `cc` failed: exit status: 1
...
...
  = note: /usr/bin/ld: /home/xxx/rand/target/debug/deps/libskyline-e611558fa1269846.rlib(skyline-e611558fa1269846.skyline.8759214c7576e6d2-cgu.1.rcgu.o): in function `skyline::logging::log':
          /home/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/skyline-0.2.1/src/logging.rs:20: undefined reference to `skyline_tcp_send_raw'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

Would you know how to solve such linking issues?