栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > .Net

Onvif 无法解析的外部符号 soap

.Net 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Onvif 无法解析的外部符号 soap

无法解析的外部符号问题也困扰我很久,最后才发现是因为没有添加文件问题,我的天呀!!

问题描述:

1> 正在创建库 G:onvifOnvif_ClientonvifClientDebugonvifClient.lib 和对象G:onvifOnvif_ClientonvifClientDebugonvifClient.exp
1>soapC.obj : error LNK2019: 无法解析的外部符号 “struct timeval * __cdecl soap_in_xsd__dateTime(struct soap *,char const *,struct timeval *,char const *)” (?soap_in_xsd__dateTime@@YAPAUtimeval@@PAUsoap@@PBDPAU1@1@Z),该符号在函数 _soap_getelement 中被引用
1>soapC.obj : error LNK2019: 无法解析的外部符号 “int __cdecl soap_out_xsd__dateTime(struct soap *,char const *,int,struct timeval const *,char const *)” (?soap_out_xsd__dateTime@@YAHPAUsoap@@PBDHPBUtimeval@@1@Z),该符号在函数 _soap_putelement 中被引用
1>soapC.obj : error LNK2019: 无法解析的外部符号 “void __cdecl soap_serialize_xsd__dateTime(struct soap *,struct timeval const *)” (?soap_serialize_xsd__dateTime@@YAXPAUsoap@@PBUtimeval@@@Z),该符号在函数 _soap_markelement 中被引用
1>soapC.obj : error LNK2019: 无法解析的外部符号 “void __cdecl soap_default_xsd__dateTime(struct soap *,struct timeval *)” (?soap_default_xsd__dateTime@@YAXPAUsoap@@PAUtimeval@@@Z

1>d:program files (x86)microsoft visual studio 8vcincludevector(639) : fatal error C1128: 节数超过对象文件格式限制请使用/bigobj 进行编译

解决方法:
1、在项目属性C/C+±》命令行 添加 /bigobj , 这样就能解决其中之一报错问题

2、关于无法解析的外部符号 "struct timeval * __cdecl soap_in_xsd__dateTime等问题,是因为没有添加duration.c和duration.h 导致的。

注:如使用C++的,添加duration.c文件时,把后缀C改成CPP文件格式。这样就能编译通过啦!!!

如添加duration.c后还出现错误如:
1>.duration.cpp(66) : error C2226: 语法错误: 意外的“”类型
1>.duration.cpp(67) : error C2143: 语法错误: 缺少“”在“{”的前面
1>.duration.cpp(67) : error C2447: “{”缺少函数标题是否是老式的形式表
1>.duration.cpp(103) : error C2228: “”的左边必须有类结构联合
1> 类型是“LONG64”
1>.duration.cpp(108) : error C2146: 语法错误: 缺少“”在标识符“”的前面
1>.duration.cpp(108) : error C2275: “”将此类型用作表达式非法
1> e:codecppzxvnms_5_6_devsrconvifwsproxystdsoap2.h(2639) : 参见“”的声明
1>.duration.cpp(108) : error C2365: “”重定义;以前的定义是“函数”
1> e:codecppzxvnms_5_6_devsrconvifwsproxystdsoap2.h(3430) : 参见“”的声明
1>.duration.cpp(108) : fatal error C1903: 无法从以前的错误中恢复;正在停止编译

参考文章:https://blog.csdn.net/qq_36351159/article/details/107786882

出现stdsoap2.cpp错误 2 error LNK2001: 无法解析的外部符号 _namespaces

解决方法:

  1. 在工程中定义 WITH_NONAMESPACES 宏

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/908868.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号