From 0717e1ebb5c5a551b633718e7efb83f6430e5f8e Mon Sep 17 00:00:00 2001 From: pravic Date: Wed, 13 Apr 2016 12:19:03 +0300 Subject: note about staticlib compilation --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd6d5b8..8016986 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ To compile you need the following: * MSVC itself, either VS 2015 or just MSVC Build Tools. * Rust environment for the Windows drivers: [kmd-env-rs](https://github.com/pravic/kmd-env-rs). +As workaround you can compile drivers as `#[crate_type="staticlib"]` and link them manually (see *examples/03.urandom/build.cmd*). + + Setting up: ``` @@ -33,8 +36,8 @@ cd km\examples\01.minimal\ cargo build --release ``` -If linker fails with error *cannot open input file 'ntoskrnl.lib'*, -open `kmd-env-rs/.cargo/config` file and replace `../../../` with the full path to the *kmd-env-rs* directory. +If linker fails with error "*cannot open input file 'ntoskrnl.lib'*", +open `kmd-env-rs/.cargo/config` file and replace `../../../` with the full path to the "*kmd-env-rs*" directory. ### Examples -- cgit v1.2.3