I am new to visual studio. I am going to study libxml2 library. So my first example is parsing a xml file. I follow libxml2 official tutorial. Libxml Tutorial I set the additional include directory path suitably. But there are build errors still remaining. my cpp file is in C. Code for Keyword Example
help me.
The output is as follows.
1>------ Build started: Project: DemoLibxml, Configuration: Debug Win32 ------
1>sample.obj : error LNK2019: unresolved external symbol _xmlStrcmp referenced in function "void __cdecl parseDoc(char *)" (?parseDoc@@YAXPAD@Z)
1>sample.obj : error LNK2019: unresolved external symbol _xmlFreeDoc referenced in function "void __cdecl parseDoc(char *)" (?parseDoc@@YAXPAD@Z)
1>sample.obj : error LNK2019: unresolved external symbol _xmlDocGetRootElement referenced in function "void __cdecl parseDoc(char *)" (?parseDoc@@YAXPAD@Z)
1>sample.obj : error LNK2019: unresolved external symbol _xmlNodeListGetString referenced in function "void __cdecl parseStory(struct _xmlDoc *,struct _xmlNode *)" (?parseStory@@YAXPAU_xmlDoc@@PAU_xmlNode@@@Z)
1>sample.obj : error LNK2019: unresolved external symbol _xmlParseFile referenced in function "void __cdecl parseDoc(char *)" (?parseDoc@@YAXPAD@Z)
1>sample.obj : error LNK2001: unresolved external symbol __imp__xmlFree
1>D:\cppwork\DemoLibxml\Debug\DemoLibxml.exe : fatal error LNK1120: 6 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========