build.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <p>To build the library you need one of supported C++ compilers and
  2. <link href="https://www.gnu.org/software/make">GNU Make</link> utility version
  3. 3.82 or higher available in your command line environment (cmd).</p>
  4. <p>Currently supported compilers are:</p>
  5. <list style="bulleted">
  6. <item>GNU C++ v 4.7+ (MinGW) [<tt>gcc</tt>]</item>
  7. <item>Clang v 5+ with MinGW [<tt>clang</tt>]</item>
  8. <item>Clang v 5+ with Visual C++ [<tt>clang-cl</tt>]</item>
  9. <item>Visual C++ v 15.8+ (Visual Studio 2017) [<tt>msvc</tt>]</item>
  10. <item>Visual C++ v 7.1+ (Visual Studio 2003) [<tt>msvc</tt>] is supported
  11. but you may need to edit makefiles because of unsupported compiler
  12. options</item>
  13. </list>
  14. <p>Go to <tt>src</tt> subdirectory and write:</p>
  15. <tty>
  16. C:\> gmake
  17. </tty>
  18. <p>The library file will be built for you.</p>
  19. <p>C++17 is used by default but you can choose another language standard
  20. version using <tt>std</tt> option. E.g. to build the library in C++98 mode
  21. write:</p>
  22. <tty>
  23. C:\> gmake std=98
  24. </tty>
  25. <p>Available values include: 98, 11, 14, 17, 20 and 23.</p>
  26. <p>Also you can choose the used compiler manually:</p>
  27. <tty>
  28. C:\> gmake compiler=gcc
  29. </tty>
  30. <p>Alternatively NMAKE utility can be used with Visual C++ and clang-cl instead
  31. of gmake:</p>
  32. <tty>
  33. C:\> nmake -f Makefile.nmake compiler=msvc
  34. </tty>
  35. <p>Finally, to use the library you just need to copy the library file and
  36. contents of <tt>include</tt> subdirectory to some place where compiler/linker
  37. can find it.</p>