} GUID; 然后在b.cpp文件里面引用 #include #include <Windows.h> 这样编译会报错 程序报错:error C2146: 语法错误 : 缺少“;” 其原因是在a.h文件中 DWORD未定义,在a.h文件中引用minwindef.h再编译就会报错 fatal error C1189: #error : "No Target Architecture" #include <minwindef.h> typedef str...
This is the error message: \include\WinNT.h(165): fatal error C1189: #error : "No Target Architecture"I think I've correctly configured the "Configuration Manager..." whit x64 platform, and with the project properties. The error occures here:К...
在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> 编译通过
1 首先在vc6里面设置ddk的include和lib路径,要安装好一个ddk,以前安装好的也可以,只要ddk目录还在就可以了,这里假设ddk目录是F:\WINDDK 那么该目录下还会有子目录,一般2660是xp的ddk,3790是win2003的sdk,随便用一种都无所谓。在vc6里面,Tools --> Option -->Directoriers里面设置 Include路径...
报错C1189 #error: "No Target Architecture" 2018-12-22 10:37 −根本原因: 是因为单独包含了一些windows.h已经包含了的头文件如"fileapi.h","WinUser.h",但是却没有包含windows.h 或者先包含了如"fileapi.h","WinUser.h",后包含windows.h,顺序不对 先说解决方案: 在代码中 加入i... ...
When i compiled i am getting this error.fatal error C1010: unexpected end of file while looking for precompiled header directive in the .c file produced from the idl file.i included comdef.h and header file produced by midl compiler to the source file. i had the dll file in the same ...
Fatal error C1113 Fatal error C1116 Fatal error C1117 Fatal error C1120 Fatal error C1121 Fatal error C1126 Fatal error C1128 Fatal error C1189 Fatal error C1190 Fatal error C1191 Fatal error C1192 Fatal error C1196 Fatal error C1197 ...
Fatal error C1108 Fatal error C1109 Fatal error C1113 Fatal error C1116 Fatal error C1117 Fatal error C1120 Fatal error C1121 Fatal error C1126 Fatal error C1128 Fatal error C1189 Fatal error C1190 Fatal error C1191 Fatal error C1192 ...
fatal error C1189: #error : "No Target Architecture" 解决办法一 2014-12-03 14:39 −在编译程序的时候发现报这个错误,在网上看到很多文章,说设置include路径,lib目录等等,都没有解决。最后调整了以下include文件的顺序,问题解决了。例如 从头文件a.h中截取的一段 typedef struct { DWORD Data1; &nbs.....
完整错误信息: >c:\program files (x86)\windows kits\8.1\include\um\winnt.h(147): fatal error C1189: #error : "No Target Architecture" 定位到源代码: #if defined(_AMD64_) || defined(_X86_) #define PROBE... 查看原文 MFC 常见问题 fatal error C1189: #error : Building MFC application...