Reputation: 65
I'm trying to compile c++ code on Linux, to run on Windows, using MinGW-w64, but I don't know how to apply the flags I usually use when compiling for linux. Say for example I use the link flag -lX11 to link on Linux when using g++, how would I use that corresponding flag to compile for Windows using MinGW-w64? Thanks in advance for the help!!
Upvotes: 1
Views: 172
Reputation: 155
Mingw contains a normal g++ so the compile flags shouldn't differ. linking X11 won't work propably because it isn't available on windows
Upvotes: 2