clinuxmingwexepdcurses

error comping c to (windows)exe on linux with mingw


I installed the mingw stuff from yaourt on arch linux but when i type

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

I get:

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

It must be something simple but I don't know what!


Solution

  • Try:

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