Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Error C1189: # error: "No Target Architecture"

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Error message

  VS2013 compiler error:

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

Cause of error

This error occurs because the windows header file: # include "fileapi.h" is included

Double-click the error message line, and the page jumps to the winnt.h header file, as shown below:

As you can see, an error message appears: "No Target Architecture" because a macro is not defined, such as AMD64, X86, _ IA64_, or ARM

Solution method

I chose to add the _ AMD64_ macro to the project (the other three will work as well) to solve this problem.

How to do this: right-click on the project name-- > Properties-- > Cramp Clippers music-> preprocessor-- > add macros, as shown below:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report