Cross compiling error on Debian (VM)

So I planned on cross compiling on a VM targeting Windows and I got a flag error relating on -mconsole. Any solutions?
6 Replies
Furry
Furry2y ago
This doesn't relate to Termux but what's the output of the error?
chess.bmp
chess.bmp2y ago
Furry
Furry2y ago
Is the correct linker even used? if you're using default compiler/linker and not the appropriate one then it would fail
chess.bmp
chess.bmp2y ago
i dunno
chess.bmp
chess.bmp2y ago
this was using the i686 compiler
Furry
Furry2y ago
there are missing headers. most of them are local headers from source tree which I couldn't tell about a fix than putting the header file in the correct location, second is sdl which you need to provide sdl headers on an appropriate sysroot. I doubt headers from linux would even work linking .so to a windows executable