异常:C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(147): fatal error C1189: #error: "No Target Architecture"

在Qt里使用MFC的一些类的时候需要包含windef.h,但是一包含就报

C1189 #error: "No Target Architecture" linklib C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h 147

 

解决方法:添加 #include <afxwin.h>   编译通过

posted on 2016-12-05 17:03  阿兴的平凡世界  阅读(1271)  评论(0)    收藏  举报

导航