Browse Source

修复运行时,库找不到的问题

master
zhaohe 3 years ago
parent
commit
bf6c27093b
  1. 42
      README.md
  2. BIN
      markdown.assets/README.assets/image-20220618173238145.png
  3. BIN
      markdown.assets/README.assets/image-20220618173350153.png
  4. BIN
      markdown.assets/README.assets/image-20220618174248032.png
  5. BIN
      release/VC_redist.x86.exe
  6. BIN
      release/stm32_pwm_computer.exe

42
README.md

@ -10,8 +10,6 @@
[stm32_pwm_computer.exe](./release/stm32_pwm_computer.exe)
**Linux**
```bash
@ -19,13 +17,9 @@ cd linux
./build.sh
```
## 用法
## Usage
**Win**
### Win
1.文件资源管理器打开stm32_pwm_computer.exe所在目录。
@ -52,3 +46,35 @@ Tip:
```
![image-20220607194308252](markdown.assets/README.assets/image-20220607194308252.png)
## 程序执行异常
### vcruntime140.dll was not found
解决方案:
下载Visual C++ Redistributable库文件,安装即可
[Latest supported Visual C++ Redistributable downloads | Microsoft Docs](https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170)
![image-20220618173350153](markdown.assets/README.assets/image-20220618173350153.png)
错误分析
```
vcruntime140.dll,是vc工程编译出来的程序必须依赖的库,如果没有则需要安装相应的库包。
```
### vcruntime140d.dll was not found
![image-20220618173238145](markdown.assets/README.assets/image-20220618173238145.png)
```
vcruntime140d.dll 是 vcruntime140.dll的包含Debug信息的版本,如下图在viso编译时,生成的目标选择Debug版本,则连接的是vcruntime140d.dll,如果是Release连接的是vcruntime140.dll,如果想要安装vcruntime140d.dll,安装驱动库即可。
```
![image-20220618174248032](markdown.assets/README.assets/image-20220618174248032.png)

BIN
markdown.assets/README.assets/image-20220618173238145.png

After

Width: 443  |  Height: 130  |  Size: 16 KiB

BIN
markdown.assets/README.assets/image-20220618173350153.png

After

Width: 841  |  Height: 465  |  Size: 50 KiB

BIN
markdown.assets/README.assets/image-20220618174248032.png

After

Width: 271  |  Height: 99  |  Size: 3.3 KiB

BIN
release/VC_redist.x86.exe

BIN
release/stm32_pwm_computer.exe

Loading…
Cancel
Save