I want to use the tinyxml library, I downloaded it, but I do not know what needs to be done for the compiler to see it ..
I work in Windows, in Far-e
Closed due to the fact that the question is too common for participants Vladimir Martyanov , Stranger in the Q , aleksandr barakin , Vladimir Glinskikh , Kromster 27 Aug '15 at 12:32 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
1 answer
TinyXml is a small, header-only library.
So just put it (tinyxml.h and maybe tinystr.h) in a separate directory and connect via #include .
Your development tools (Visual Studio or MinGW) have nothing to do with this, as there is no compiled code in the library.
Clarification: as correctly noted by @ zenden2k, the library is not really header-only. According to the documentation :
It is two headers and four cpp files. Go ahead.
i.e
It [library] consists of two header files and four cpp files. Just connect them to your project and that's it.
That is, you need to put cpp-files next to the headers and add them along with the other sources to your project (Visual Studio) or makefile.
- "header-only-library" is not true - zenden2k
- one@ zenden2k: Accepted, clarified the answer. - VladD
- oneAnd for the umpteenth time, people obviously not versed in the subject closed the question. - avp
Far-еthere was no hyphen in the wordFar-е;) I thought some secret IDE might have been meant: "Fare" - Anton Komyshan