From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



64位DAQmx C Lib文件在哪里可以找到?



主要软件:
主要软件版本: 7.0
主要软件修正版本: N/A
次要软件: N/A

问题: 我在C或C++下开发DAQmx应用程序。在32位开发环境下,编译正常,可以正确连接到.h和lib文件,路径为 Program Files (x86)\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc. 但是当我在64位环境下开发程序时,报错了。我该怎样在使用DAQmx在64位C或C++环境下开发程序?

解答:

在64位程序中调用32位的库会导致这个链接错误。如果你的64位程序作为32位的应用来运行,链接错误很可能是因为链接到32位lib库文件导致的。64位库文件路径为Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C\lib64\msvc.这是一个本地的64位库文件,可以在64位C或者C++环境中使用。



相关链接: KnowledgeBase 3F4DMOTY: How Can I Use The NI-DAQmx ANSI C Function Library With Borland C and Delphi?
KnowledgeBase 3V09OJNY: Location of ANSI C NI-DAQmx Shipping Examples and DAQmx Library File for Windows

附件:





报告日期: 06/14/2010
最近更新: 01/18/2013
文档编号: 5AD8L9OQ