51Testing软件测试论坛

标题: 折腾我到半夜,实在搞不定了。向大家求助 [打印本页]

作者: kfc427    时间: 2009-4-23 02:11
标题: 折腾我到半夜,实在搞不定了。向大家求助
这是关于我最近做的一个自动化测试的框架。在link的时候出现了如下的错误:
SoapQueryResultset.obj : error LNK2022: 元数据操作失败(8013118D) : 重复类型(CTrace)中的布局信息不一致:(0x0200004a)。

由于这个文件太大,就不全贴上来了。只把文件开始部分贴了出来。
#define XML_LIBRARY
#include "Exception.h"
#include "Staf2cli.h"
#include "autopas.h"
#include "SoapQueryResultset.h"
#include "MemMgr.h"
#include <stdio.h>
#include <F:\project\publib\src\Trace.h>
#include "Command.h"
#include "XMLPrinter.h"
#include "AutoPasEnv.h"
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#ifdef _MSC_VER
#include "unix2win.h"
#endif //_MSC_VER
XERCES_CPP_NAMESPACE_USE

网上说的那些方法都不太明白...
希望高手来帮忙。需要公示什么资料的,只管提。
小弟为了这个问题会大部分时间在线的。
作者: kfc427    时间: 2009-4-23 09:44
怎么没人看啊?
真郁闷...
作者: imutou    时间: 2009-4-23 10:01
偶个手动的,帮不上。
作者: shanxi    时间: 2009-4-23 10:54
标题: 你这是自动解析xml?
The Apache project's Xerces-C libraries support the DOM approach to XML parsing. The entire XML file is imported into memory and the data is held as nodes in a data tree which can be traversed for information.

The Xerces-C C++ parser home page: http://xml.apache.org/xerces-c/

从你贴上来的头文件能看到:
Unix2Win is a utility with graphical user interface that converts ASCII text
files from Unix to Microsoft Windows format or vice versa.

Ctrace 提供了一个在运行AIX的RISC系统上搜集指令和数据地址轨迹的方法,并且可以提供给你一些有用的信息,这些信息可以被用来重新生成实际的指令序列,以及相应于一个给定的地址轨迹的数据引用。

MemMgr -- Simple Memory Manager library

XmlLite/libjingle

[ 本帖最后由 shanxi 于 2009-4-23 11:14 编辑 ]
作者: kfc427    时间: 2009-4-23 11:09
标题: 回复 4# 的帖子
我这里的确是有xml的处理,而且很多
在link之前曾出现过我引用的xml相关的lib与系统include路径下的MsXml.h有冲突的情况。
当时我是采用了一些低级手段解决掉了---把MsXml.h里面冲突的地方注释掉了...
不知道您有什么办法解决...




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2