Cargo:rustc-link-search= not work as I want, DLL_NOT_FOUND

eta --extern chrono=C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\deps\libchrono-324a54bf8d5c6555.rmeta --extern chrono_tz=C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\deps\libchrono_tz-e7536f7414d62252.
rmeta --extern clickhouse_rs=C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\deps\libclickhouse_rs-3661f1e16875b236.rmeta --extern encoding=C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\deps\libencoding-a26
e00370a5cb71b.rmeta --extern libc=C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\deps\liblibc-554b9670e6df3942.rmeta -L native=C:\Users\Administrator/.HFQ\ctp -L C:\Users\Administrator/.HFQ\ctp -L C:\Users\Administrator
/.HFQ\ctp -L C:\Users\Administrator\CLionProjects\FlashFunk\flashfunk-level\sdk_sources\ctp\lib -L C:\Users\Administrator\CLionProjects\FlashFunk\flashfunk-level\sdk_sources\ctp\win -l static=ctp -l dylib=thosttraderapi_se -l dylib=
thostmduserapi_se -L native=C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\build\clickhouse-rs-cityhash-sys-d4482d5e08a939a9\out -L native=C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\build\lz4-sys-946a0f
0dbcdb2e9c\out`

Hey, "cargo:rustc-link-search=" is not work, can you help me with this?
I have work on this for a long time.

It has include the the path which in output -L C:\Users\Administrator\CLionProjects\FlashFunk\flashfunk-level\sdk_sources\ctp\win

but also got

     Running `C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\examples\call.exe`
error: process didn't exit successfully C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\examples\call.exe` (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

This project address GitHub - HFQR/FlashFunk: High-performance future trade framework
build.rs address FlashFunk/build.rs at 61eddeb52ce22f519af89bc3e3ce350549bf7b31 · HFQR/FlashFunk · GitHub

Reproduce this problem setep:

cd flashfunk-core 

// you  can use -vv to  get detail message 
cargo run  --example call  

and when I put the dll into the dir C:\Users\Administrator\CLionProjects\FlashFunk\target\debug\examples
it works.

so is there any good way to fix it ?

os version win10
rustc 1.47.0 (18bf6b4f0 2020-10-07)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.