我在arch linux上安装了yaourt的mingw,但是当我输入

x86_64-w64-mingw32-gcc tom.c ncurses_functions.c terminal_functions.c list_functions.c -o -lpdcurses tom_windows.exe

我得到:
x86_64-w64-mingw32-gcc: error: tom_windows.exe: No such file or directory

一定很简单,但我不知道是什么!

最佳答案

尝试:

x86_64-w64-mingw32-gcc tom.c ncurses_functions.c terminal_functions.c list_functions.c -o tom_windows.exe -lpdcurses

关于c - 使用mingw将c编译为(windows)exe时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35352415/

10-17 02:47