ITADN

Linker Error Produced when Compiling

#49OpenFischer1000 创建于 2026-01-02
dependenciesquestion
F
Fischer1000commented
### Search before asking - [x] I have searched the Ultralytics [issues](https://github.com/ultralytics/PROJECT_NAME/issues) and found no similar bug report. ### Ultralytics Component Setup ### Bug I tried to use this repository as a library for my project, but when I tried to compile my project, I had the following linker error. I did everything according to the `README.md` file. `C:\path\to\project\target\release\deps\project_name.exe : fatal error LNK1120: 19 unresolved externals` See full error [here](https://pastebin.com/4cWs2EYe). My `main.rs` code is literally pasted from `README.md`. I have also tried pulling the repository and running `cargo build --release` to try the CLI variant but the same probem occures. ### Environment ``` OS: Windows 11 Pro 64-bit (updated to the latest version) Rust toochain: 1.85-x86_64-pc-windows-msvc and 1.92-x86_64-pc-windows-msvc (tried on both) Package version: 0.0.7 (commit 2319c291256c3bbe43309b6913b0b818f9b866f9) Hardware: AMD Ryzen 7 7700X and AMD Radeon RX 7800XT, 16 GB RAM Environment: JetBrains RustRover and Terminal (tried on both) ``` ### Minimal Reproducible Example Try to follow the "As a Rust Library" part of `README.md`, `cargo run` or `cargo build` your project and the previously mentioned linker error will occur. ### Additional _No response_ ### Are you willing to submit a PR? - [ ] Yes I'd like to help by submitting a PR!
5 条评论