c++ - error LNK2019 of a modified versione of XMLLite library -


i modified xmllite library in order parse xml file,then modified again in order have ppl version of xmllite lib. code works copied/pasted .cpp , .h file in project on vs2013 (postserver project) need use it.

my xmllitereader.h starts with:

#include <ole2.h> #include <xmllite.h> #include <stdio.h> #include <shlwapi.h> #include <wchar.h> #include <string>   /** *  xmlreader class * *  defines required function parse , data xml file **/ class xmlreader { public:       xmlreader();     ~xmlreader();      static bool  xmlfinder(wchar* argv, const wchar* log, const wchar*     pass);     /**     *  data xml files     *     *  returns boolean if find     */      static  struct data_t     {         std::wstring numprocess;         std::wstring log;         std::wstring pass;         std::wstring mail;         std::wstring memlimit;         std::wstring cpulimit;      }data;   }; 

and xmllitereader.cpp starts with:

#include "stdafx.h" #include "xmllitereader.h"  xmlreader::xmlreader() { }  xmlreader::~xmlreader() { }   //static bool xmlreader::xmlfinder(wchar* argv, const wchar* log, const     wchar* pass);  xmlreader::data_t xmlreader::data;  bool xmlreader::xmlfinder(wchar* argv, const wchar* log, const wchar* pass) //bool  xmlfinder(wchar* argv, const wchar* log, const wchar* pass) {...... } 

but have 3 lnk2019 errors this

error 1 error lnk2019: unresolved external symbol _createxmlreader@12 referenced in function "public: static int __cdecl xmlreader::xmlfinder(wchar_t *,wchar_t const *,wchar_t const *)" (?xmlfinder@xmlreader@@sahpa_wpb_w1@z) c:\users\my_folder\documents\visual studio 2013\projects\tasklistexample\postserver\xmllitereader.obj postserver

i read threads lnk2019 on stackoverflow didn't find solution. suggestions?

edit: forget add xmllite.lib in property-link->input. createxmlreader declared on xmllite.h


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -