ntdef.h C 1189 #error:" No target Architecture" [英] ntdef.h C 1189 #error : "No target Architecture"

查看:152
本文介绍了ntdef.h C 1189 #error:" No target Architecture"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi,


我正在尝试为TwinCAt RT创建一个库(x86)& Dymola的发布平台导出了C代码。我成功创建了库。但是当我尝试在TwinCAT RT(x86)中使用这个库时,它会抛出一个错误。(C 1189  #error:"No target
Architecture")。我跟着一些线程和包含的  windows.h但没有用。在这里你可以找到错误消息。

I am trying to create a Library for TwinCAt RT (x86) & release platform for Dymola exported C code. I succeded with Library creation.However when i tried to use this library in TwinCAT RT(x86),it's throwing an Error.(C 1189  #error : "No target Architecture" ).I have followed some threads and included  windows.h but no use.Here you can find the error msg.


任何想法都会受到赞赏。

Any ideas would be appreciated.


注意:我尝试使用Sample C代码而不是Dymola导出的C代码,创建了相同的程序一个图书馆并使用它在TwinCAT RT(x86)platform.It工作正常。

Note : I tried the same procedure with a Sample C code instead of Dymola exported C code,created a library and used it in TwinCAT RT (x86) platform.It was working fine.

推荐答案

你好chilakala,

Hi chilakala,

感谢您在此处发帖。

>> ntdef.h C 1189 #error:" No目标架构"

>>ntdef.h C 1189 #error : "No target Architecture"

您是否尝试过包含SdkDdkVer.h?

Have you tried to include SdkDdkVer.h?

Windows头文件使用宏来指示哪些版本的Windows支持许多编程元素。您可以使用每个源文件中的#define语句或通过指定
来定义这些符号。 Visual C ++支持/ D编译器选项

The Windows header files use macros to indicate which versions of Windows support many programming elements. You can define these symbols by using the #define statement in each source file, or by specifying the /D compiler option supported by Visual C++.

这是一个供您参考的文档。

Here is a document for you as a reference.

https://msdn.microsoft.com/en-us/library/windows/ desktop / aa383745(v = vs.85).aspx

希望这可以为您提供帮助。

最好的问候,

Sera Yu


这篇关于ntdef.h C 1189 #error:" No target Architecture"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆