You have some other gcc
in your path, the normal one definitely understands all of these options and, contrary to a comment above, no space is needed after -MT
. Try running where gcc
to find out where is it coming from and set up your PATH
to exclude it.
FWIW I've just tried building wxWidgets with TDM 5.1.0 and it worked without any problems.