Skip to content

Problem when compiling for target wasm32-unknown-unknown #94

Open
@tanis2000

Description

@tanis2000

This is somewhat connected to #91

When trying to compile for the wasm32 target (without emscripten) but with cargo web build, I get some errors due to the libc dependency.

i.e.:

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:47:34
   |
47 |                          x: *mut c_int,
   |                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:48:34
   |
48 |                          y: *mut c_int,
   |                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:49:37
   |
49 |                          comp: *mut c_int,
   |                                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:50:36
   |
50 |                          req_comp: c_int)
   |                                    ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `FILE` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:53:44
   |
53 |         pub fn stbi_load_from_file(f: *mut FILE,
   |                                            ^^^^ not found in this scope
error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:54:44
   |
54 |                                    x: *mut c_int,
   |                                            ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:55:44
   |
55 |                                    y: *mut c_int,
   |                                            ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:56:47
   |
56 |                                    comp: *mut c_int,
   |                                               ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:57:46
   |
57 |                                    req_comp: c_int)
   |                                              ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_void` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:61:52
   |
61 |                                         user: *mut c_void,
   |                                                    ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
   |
25 |     use std::ffi::c_void;
   |
25 |     use std::os::raw::c_void;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:62:49
   |
62 |                                         x: *mut c_int,
   |                                                 ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:63:49
   |
63 |                                         y: *mut c_int,
   |                                                 ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:64:52
   |
64 |                                         comp: *mut c_int,
   |                                                    ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:65:51
   |
65 |                                         req_comp: c_int)
   |                                                   ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:69:44
   |
69 |                                       len: c_int,
   |                                            ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:70:47
   |
70 |                                       x: *mut c_int,
   |                                               ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:71:47
   |
71 |                                       y: *mut c_int,
   |                                               ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:72:50
   |
72 |                                       comp: *mut c_int,
   |                                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:73:49
   |
73 |                                       req_comp: c_int)
   |                                                 ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_float` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:74:47
   |
74 |                                       -> *mut c_float;
   |                                               ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_float;
   |

error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error[E0412]: cannot find type `c_char` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:76:44
   |
76 |         pub fn stbi_loadf(filename: *const c_char,
   |                                            ^^^^^^
help: a primitive type with a similar name exists
   |
76 |         pub fn stbi_loadf(filename: *const char,
   |                                            ^^^^
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_char;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:77:35
   |
77 |                           x: *mut c_int,
   |                                   ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:78:35
   |
78 |                           y: *mut c_int,
   |                                   ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:79:38
   |
79 |                           comp: *mut c_int,
   |                                      ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:80:37
   |
80 |                           req_comp: c_int)
   |                                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_float` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:81:35
   |
81 |                           -> *mut c_float;
   |                                   ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_float;
   |

error[E0412]: cannot find type `FILE` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:83:45
   |
83 |         pub fn stbi_loadf_from_file(f: *mut FILE,
   |                                             ^^^^ not found in this scope
error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:84:45
   |
84 |                                     x: *mut c_int,
   |                                             ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:85:45
   |
85 |                                     y: *mut c_int,
   |                                             ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:86:48
   |
86 |                                     comp: *mut c_int,
   |                                                ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:87:47
   |
87 |                                     req_comp: c_int)
   |                                               ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error: Could not compile `walkdir`.
warning: build failed, waiting for other jobs to finish...
error[E0412]: cannot find type `c_float` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:88:45
   |
88 |                                     -> *mut c_float;
   |                                             ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_float;
   |

error[E0412]: cannot find type `c_void` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:91:53
   |
91 |                                          user: *mut c_void,
   |                                                     ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
   |
25 |     use std::ffi::c_void;
   |
25 |     use std::os::raw::c_void;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:92:50
   |
92 |                                          x: *mut c_int,
   |                                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:93:50
   |
93 |                                          y: *mut c_int,
   |                                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:94:53
   |
94 |                                          comp: *mut c_int,
   |                                                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:95:52
   |
95 |                                          req_comp: c_int)
   |                                                    ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_float` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:96:50
   |
96 |                                          -> *mut c_float;
   |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_float;
   |

error[E0412]: cannot find type `c_float` in this scope
  --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:98:45
   |
98 |         pub fn stbi_hdr_to_ldr_gamma(gamma: c_float);
   |                                             ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
25 |     use std::os::raw::c_float;
   |

error[E0412]: cannot find type `c_float` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:100:45
    |
100 |         pub fn stbi_hdr_to_ldr_scale(scale: c_float);
    |                                             ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_float;
    |

error[E0412]: cannot find type `c_float` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:102:45
    |
102 |         pub fn stbi_ldr_to_hdr_gamma(gamma: c_float);
    |                                             ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_float;
    |

error[E0412]: cannot find type `c_float` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:104:45
    |
104 |         pub fn stbi_ldr_to_hdr_scale(scale: c_float);
    |                                             ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_float;
    |

error[E0412]: cannot find type `c_void` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:107:54
    |
107 |                                           user: *mut c_void)
    |                                                      ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
25  |     use std::ffi::c_void;
    |
25  |     use std::os::raw::c_void;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:108:46
    |
108 |                                           -> c_int;
    |                                              ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:110:69
    |
110 |         pub fn stbi_is_hdr_from_memory(buffer: *const stbi_uc, len: c_int) -> c_int;
    |                                                                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:110:79
    |
110 |         pub fn stbi_is_hdr_from_memory(buffer: *const stbi_uc, len: c_int) -> c_int;
    |                                                                               ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:112:45
    |
112 |         pub fn stbi_is_hdr(filename: *const c_char) -> c_int;
    |                                             ^^^^^^
help: a primitive type with a similar name exists
    |
112 |         pub fn stbi_is_hdr(filename: *const char) -> c_int;
    |                                             ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:112:56
    |
112 |         pub fn stbi_is_hdr(filename: *const c_char) -> c_int;
    |                                                        ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `FILE` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:114:46
    |
114 |         pub fn stbi_is_hdr_from_file(f: *mut FILE) -> c_int;
    |                                              ^^^^ not found in this scope
error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:114:55
    |
114 |         pub fn stbi_is_hdr_from_file(f: *mut FILE) -> c_int;
    |                                                       ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:116:48
    |
116 |         pub fn stbi_failure_reason() -> *const c_char;
    |                                                ^^^^^^
help: a primitive type with a similar name exists
    |
116 |         pub fn stbi_failure_reason() -> *const char;
    |                                                ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_void` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:118:60
    |
118 |         pub fn stbi_image_free(retval_from_stbi_load: *mut c_void);
    |                                                            ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
25  |     use std::ffi::c_void;
    |
25  |     use std::os::raw::c_void;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:121:43
    |
121 |                                      len: c_int,
    |                                           ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:122:46
    |
122 |                                      x: *mut c_int,
    |                                              ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:123:46
    |
123 |                                      y: *mut c_int,
    |                                              ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:124:49
    |
124 |                                      comp: *mut c_int)
    |                                                 ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:125:41
    |
125 |                                      -> c_int;
    |                                         ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_void` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:128:52
    |
128 |                                         user: *mut c_void,
    |                                                    ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
25  |     use std::ffi::c_void;
    |
25  |     use std::os::raw::c_void;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:129:49
    |
129 |                                         x: *mut c_int,
    |                                                 ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:130:49
    |
130 |                                         y: *mut c_int,
    |                                                 ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:131:52
    |
131 |                                         comp: *mut c_int)
    |                                                    ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:132:44
    |
132 |                                         -> c_int;
    |                                            ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:134:43
    |
134 |         pub fn stbi_info(filename: *const c_char,
    |                                           ^^^^^^
help: a primitive type with a similar name exists
    |
134 |         pub fn stbi_info(filename: *const char,
    |                                           ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:135:34
    |
135 |                          x: *mut c_int,
    |                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:136:34
    |
136 |                          y: *mut c_int,
    |                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:137:37
    |
137 |                          comp: *mut c_int)
    |                                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:138:29
    |
138 |                          -> c_int;
    |                             ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `FILE` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:140:44
    |
140 |         pub fn stbi_info_from_file(f: *mut FILE,
    |                                            ^^^^ not found in this scope
error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:141:44
    |
141 |                                    x: *mut c_int,
    |                                            ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:142:44
    |
142 |                                    y: *mut c_int,
    |                                            ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:143:47
    |
143 |                                    comp: *mut c_int)
    |                                               ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:144:39
    |
144 |                                    -> c_int;
    |                                       ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:146:82
    |
146 |         pub fn stbi_set_unpremultiply_on_load(flag_true_if_should_unpremultiply: c_int);
    |                                                                                  ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:148:76
    |
148 |         pub fn stbi_convert_iphone_png_to_rgb(flag_true_if_should_convert: c_int);
    |                                                                            ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:150:65
    |
150 |         pub fn stbi_zlib_decode_malloc_guesssize(buffer: *const c_char,
    |                                                                 ^^^^^^
help: a primitive type with a similar name exists
    |
150 |         pub fn stbi_zlib_decode_malloc_guesssize(buffer: *const char,
    |                                                                 ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:151:55
    |
151 |                                                  len: c_int,
    |                                                       ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:152:64
    |
152 |                                                  initial_size: c_int,
    |                                                                ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:153:63
    |
153 |                                                  outlen: *mut c_int)
    |                                                               ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:154:58
    |
154 |                                                  -> *mut c_char;
    |                                                          ^^^^^^
help: a primitive type with a similar name exists
    |
154 |                                                  -> *mut char;
    |                                                          ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:156:55
    |
156 |         pub fn stbi_zlib_decode_malloc(buffer: *const c_char,
    |                                                       ^^^^^^
help: a primitive type with a similar name exists
    |
156 |         pub fn stbi_zlib_decode_malloc(buffer: *const char,
    |                                                       ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:157:45
    |
157 |                                        len: c_int,
    |                                             ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:158:53
    |
158 |                                        outlen: *mut c_int)
    |                                                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:159:48
    |
159 |                                        -> *mut c_char;
    |                                                ^^^^^^
help: a primitive type with a similar name exists
    |
159 |                                        -> *mut char;
    |                                                ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:161:56
    |
161 |         pub fn stbi_zlib_decode_buffer(obuffer: *const c_char,
    |                                                        ^^^^^^
help: a primitive type with a similar name exists
    |
161 |         pub fn stbi_zlib_decode_buffer(obuffer: *const char,
    |                                                        ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:162:46
    |
162 |                                        olen: c_int,
    |                                              ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:163:56
    |
163 |                                        ibuffer: *const c_char,
    |                                                        ^^^^^^
help: a primitive type with a similar name exists
    |
163 |                                        ibuffer: *const char,
    |                                                        ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:164:46
    |
164 |                                        ilen: c_int)
    |                                              ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:165:43
    |
165 |                                        -> c_int;
    |                                           ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:167:64
    |
167 |         pub fn stbi_zlib_decode_noheader_malloc(buffer: *const c_char,
    |                                                                ^^^^^^
help: a primitive type with a similar name exists
    |
167 |         pub fn stbi_zlib_decode_noheader_malloc(buffer: *const char,
    |                                                                ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:168:54
    |
168 |                                                 len: c_int,
    |                                                      ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:169:62
    |
169 |                                                 outlen: *mut c_int)
    |                                                              ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:170:57
    |
170 |                                                 -> *mut c_char;
    |                                                         ^^^^^^
help: a primitive type with a similar name exists
    |
170 |                                                 -> *mut char;
    |                                                         ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:172:63
    |
172 |         pub fn stbi_zlib_decode_noheader_buffer(obuffer: *mut c_char,
    |                                                               ^^^^^^
help: a primitive type with a similar name exists
    |
172 |         pub fn stbi_zlib_decode_noheader_buffer(obuffer: *mut char,
    |                                                               ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:173:55
    |
173 |                                                 olen: c_int,
    |                                                       ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_char` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:174:65
    |
174 |                                                 ibuffer: *const c_char,
    |                                                                 ^^^^^^
help: a primitive type with a similar name exists
    |
174 |                                                 ibuffer: *const char,
    |                                                                 ^^^^
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_char;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:175:55
    |
175 |                                                 ilen: c_int)
    |                                                       ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

error[E0412]: cannot find type `c_int` in this scope
   --> /Users/tanis/.cargo/registry/src/github.jpy.wang-1ecc6299db9ec823/stb_image-0.2.2/src/stb_image.rs:176:52
    |
176 |                                                 -> c_int;
    |                                                    ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
25  |     use std::os::raw::c_int;
    |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions