Build issue; permission denied to open file
Trying out the simple hello world example.
I added ncurses to my dependencies and just ran it. This is the result:
```
cargo build
Compiling ncurses v5.85.0
error: failed to run custom build command for `ncurses v5.85.0`
process didn't exit successfully: `C:\~~~\rust\example\target\debug\build\ncurses-35f9ffa7ff1eeb80\build-script-build` (exit code: 101)
--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("debug")
chtype_size.c
c1: fatal error C1083: Cannot open source file: 'C:\~~~\rust\example\target\debug\build\ncurses-b821ee5513798319\out\chtype_size.c': Permission denied
--- stderr
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
thread 'main' panicked at 'C:\~~~\rust\example\target\debug\build\ncurses-b821ee5513798319\out\chtype_size failed: Error { repr: Os { code: 2, message: "The system cannot find the file specified." } }', C:\bot\slave\stable-dist-rustc-win-msvc-64\build\src\libcore\result.rs:868
```
4 条评论