Can't include TinyXML in C++/CLI project

醉酒当歌 提交于 2019-12-11 07:27:39

问题


I have a C++/CLI project, and I want to include TinyXML. I downloaded the library, added it as a a new project to my solution and added a reference from my project to the library.

In my code I have

#include "StdAfx.h"
#include "tinyxml.h"

When i compile i get 70 linking errors. I tried to comment #define TIXML_SAFE in tinyxml.h ( saw that on google ) , but doesnt work.

Thanks, Dave


回答1:


Got it, i included tinyxml in a subfolder of my current project, instead of adding it in its own project. I also used tinyXMLSTL. Thanks.



来源:https://stackoverflow.com/questions/7999678/cant-include-tinyxml-in-c-cli-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!