Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
0
down vote
favorite
I want to parse XML file using tinyxml2. (referring https://github.com/leethomason/tinyxml2) in that 1.I create new project----->copy +paste the code present in testXML file--->add tinyxml2.h & tinyxml2.cpp file by add exiting item.

then I got two errors: 1 unresolved externals -->then I do setting: property->linker->system->subsystem->not set. (error gets resolved) 2. LNK1561: entry point must be defined --> which is unresolved one

2.I read some where, to fix error unresolved external we have to set path in property->linker->subsystem->console(cause we create win32 console application while creating new project).After doing this stuff I am getting two new errors as follows: 1. LNK1120: 1 unresolved externals
2. LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup which I am not able to solve. Could you please help me out from this?? Basically I am bit confused, which path should I follow (as mentioned above): means 1 or 2???


What I have tried:

C++


want to replace my XML file at the place of dream.xml
int example_1()
{
XMLDocument doc;
doc.LoadFile("resources/dream.xml");

return doc.ErrorID();
}
Posted
Comments
Suvendu Shekhar Giri 13-Oct-16 8:20am    
In another note,
0
down vote
favorite

Is this copied from somewhere else or from an old post in codeproject?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900