How to create libJSON library?

I downloaded C ++ libJSON from this link :

And they suggest me use it as a library. How to create a library using the code they provided?

+3
source share
2 answers

you should have installed g ++ and made it easy to compile its type in the console / terminal make, it will create libjson.aone that is static libary. When you create a C / C ++ program, you can link it to itg++ -l libjson.a

and in your code, the libJSON.h header file.

#include "libJSON.h"

and you can use all the functions from this header file.

MinGW ( GNU Windows), IDE, Dev++ Code:: Blocks (Code:: Blocks MinGW). Cygwin unix- Windows ( cygwin, Cygwin)

Code:: Blocks , .

+4

libjson 7.6.1 Visual Studio 2010. . , ,

  • Libjson
  • libjson.vcproj goto line 240. " > ". .
  • lib.

. , .

+3

Source: https://habr.com/ru/post/1764822/


All Articles