sorry, I've found the problem is due to my macro, only _MSC_VER includes windows.h and stdio.h but __MINGW32__ not... thanks again for your help fei
View entire thread