小编Cam*_*ace的帖子

为什么我收到错误“程序无法启动,因为您的计算机缺少 msys-2.0.dll”?有解决办法吗?

我用 C 写了一个很长的程序,所以我没有写完整的代码。这些是我使用的库(以防万一)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <time.h>
#include <sys/types.h>
#include <dirent.h>
#include "xlsxwriter.h"
Run Code Online (Sandbox Code Playgroud)

该程序在我的 Windows 计算机上完美运行,在我的工作计算机以及我有相同程序的地方运行。

但是当我在同事的计算机上运行时,会出现此错误:

System error:
The program can't start because msys-2.0.dll is missing from your computer.
Try reinstalling the program to fix this problem.
Run Code Online (Sandbox Code Playgroud)

有没有办法让它在不安装整个视觉工作室的情况下工作?

菜鸟 C 程序员在这里!:)

编辑:我是这样编译的:

gcc Example.c -o Example -static-libgcc -std=c99 -lxlsxwriter -lz
Run Code Online (Sandbox Code Playgroud)

c windows dll mingw

5
推荐指数
1
解决办法
6823
查看次数

标签 统计

c ×1

dll ×1

mingw ×1

windows ×1