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 .

  • 2
    You need to read the documentation for the development tools used: Visual Studio, mingw, or whatever you have. You can also see the accompanying documentation for the library itself, it can be written there how to connect it to various projects. - Vladimir Martyanov
  • @Anton: Far is a nortone-like file manager. Excellent replacement for Explorer, by the way, for old school programmers. - VladD
  • 2
    @VladD, that’s fine with you: D far I actively use .. Initially Far-е there was no hyphen in the word Far-е ;) I thought some secret IDE might have been meant: " Fare " - Anton Komyshan
  • @Anton: Ah, that's it! I did not see the original question. :-) - VladD
  • Related question: Stackoverflow.com/q/43186/181472 - Nick Volynkin

1 answer 1

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
  • one
    And for the umpteenth time, people obviously not versed in the subject closed the question. - avp