final link failed: Invalid argument when including windows.h
问题 I have set up MinGW and Eclipse with CDT for C++ developing on Windows. Everything works great until I #include <windows.h> . As soon as I do that, I get the linker error message c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: final link failed: Invalid argument whereby the path at the beginning resolves to C:/MinGW/mingw32/bin/ld.exe . I have no idea what the error message tries to tell me... so please help me to decrypt it. 回答1: Since I actually don't agree to Lol4t0's