2013-03-30 42 views
0

我写了使用gsoap v 2.8的hellow-world程序,并试图在Visual Studio 2010中进行编译。我想使用stl-vector功能。但也有指令gsoap:插入stlvector

#import "import/stlvector.h" 

进口错误的错误:

error C1083: Cannot open type library file: 'r:\work\vs2010\xmlme\xmlme\import\stlvector.h' Error while loading library r:\work\vs2010\xmlme\xmlme\xmlme.h

和后果:

IntelliSense: cannot open source file "R:/Work/VS2010/XmlMe/XmlMe/Debug/stlvector.tlh" r:\work\vs2010\xmlme\xmlme\xmlme.h

不能搞清楚什么智能感知离我想要的。我将gsoap目录中的导入文件夹复制到我的项目中,并按照我的想法正确引用它。

my solution archive (link may expire)

UPDATE:

我试过-s为wsdl2h效用参数排除从xmlme.h STL文件的依赖性。而现在我已经类似的错误:

error C1083: Cannot open type library file: soap12.h: Error while loading library. xmlme\xmlme.h

...产生相同的后果怪异:

IntelliSense: cannot open source file "XmlMe/Debug/soap12.tlh" \xmlme\xmlme.h

回答

0

的事情是不包括XmlMe.h(与wsdl2h.exe工具生成的文件)中该项目。它使用符合soapcpp2的语言(基于C而不是C,这就是为什么VS10编译器在包含这样的文件时会产生错误)。

此外,您还需要包含.nsmap文件,例如,在你的主函数定义文件中。