本文介绍了VS C ++与Agilent数字万用表的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 你好,我目前正在VS C ++ 2017上开发一个Windows控制台应用程序与数字万用表通信但是当我尝试运行代码时,我收到以下错误:I'm currently developing a windows console application on VS C++ 2017 to communicate with a digital multi-meter but when I try to run the code, I get the following errors:错误 LNK2001 未解析的外部符号_main test_read_dmm_2 Error LNK2001unresolved external symbol _main test_read_dmm_2错误 LNK2019 未解析的外部符号__imp____acrt_iob_func   test_read_dmm_2.obj Error LNK2019unresolved external symbol __imp____acrt_iob_func referenced in function _printf test_read_dmm_2.obj错误 LNK2019 未解析的外部符号__imp__getchar在函数中引用_wmain test_read_dmm_2.obj Error LNK2019unresolved external symbol __imp__getchar referenced in function _wmain test_read_dmm_2.obj错误 在函数__vfprintf_l test_read_dmm_2.obj Error LNK2019unresolved external symbol __imp____stdio_common_vfprintf referenced in function __vfprintf_l test_read_dmm_2.obj错误 LNK2019 未解析的外部符号__imp__exit在函数_wmain中引用 test_read_dmm_2.obj Error LNK2019unresolved external symbol __imp__exit referenced in function _wmaintest_read_dmm_2.obj 错误 LNK2019 函数_wmain中引用的 未解析的外部符号_memset test_read_dmm_2.obj Error LNK2019unresolved external symbol _memset referenced in function _wmain test_read_dmm_2.obj错误 LNK2019 未解析的外部符号_strcpy_s在函数中引用" void __cdecl _RTC_StackFailure (void *,char const *)" (?_RTC_StackFailure @@ YAXPAXPBD @ Z)MSVCRT.lib(_error_.obj)Error LNK2019unresolved external symbol _strcpy_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure@@YAXPAXPBD@Z) MSVCRT.lib(_error_.obj)错误 LNK2019 未解析的外部符号_strcat_s (?_RTC_StackFailure @@ YAXPAXPBD @ Z)MSVCRT.lib(_error_.obj) Error LNK2019unresolved external symbol _strcat_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure@@YAXPAXPBD@Z) MSVCRT.lib(_error_.obj)错误 LNK2019 未解析的外部符号___stdio_common_vsprintf_s在函数__vsprintf_s_l中引用MSVCRT.lib(_error_。 obj) Error LNK2019unresolved external symbol ___stdio_common_vsprintf_s referenced in function __vsprintf_s_l MSVCRT.lib(_error_.obj)错误 LNK2019 未解析的外部符号___vcrt_GetModuleFileNameW在函数" int __cdecl _RTC_GetSrcLine中引用( unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine @@ YAHPAEPA_WKPAH1K @ Z)MSVCRT.lib(_pdblkup_.obj) Error LNK2019unresolved external symbol ___vcrt_GetModuleFileNameW referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) MSVCRT.lib(_pdblkup_.obj) 使用的代码如下: 我知道如何解决这些错误吗?任何反馈都将不胜感激!Any idea how I can address these errors? Any feedback would be greatly appreciated! 非常感谢您的关注推荐答案 你好,看起来你没有包含一些第三方库吗?我看到一些visa.h,并期望可能还有一些库文件需要什么。这是Multimeter的通信制造商的库吗?哪个协议?looks like you have some 3-rd party library not included? I see some visa.h and expect probably some library file what is needed also. is this library for Multimeter's manufacturer for communication? Which protocol? 这篇关于VS C ++与Agilent数字万用表的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-31 15:58