Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to use Json-c parser or any other parser in Eclipse for C programming in Windows
https://www.eclipse.org/forums/index.php/mv/msg/1107483/1839728/#msg_1839728
https://github.com/json-c/json-c. I have downloaded the Json Editor Plugin from Eclipse Marketplace. Please help me out. Any parser is fine. Thank you]]>Nishith Thottam2021-03-26T14:44:49-00:00Re: How to use Json-c parser or any other parser in Eclipse for C programming in Windows
https://www.eclipse.org/forums/index.php/mv/msg/1107483/1839741/#msg_1839741
then you will understand what Eclipse/CDT needs from you. https://tldp.org/HOWTO/Program-Library-HOWTO/ https://makefiletutorial.com/
If you are looking for a detailed step-by-step procedure, it's not as simple as you might think.
A lot depends on the type of CDT project.
Generally, for any external library,
You need to tell the compiler where the include files can be found [GCC -I (capital I) flag].
You need to tell the linker where the libraries can be found and which to use [GCC -L and -l (small L) flags]
Tell the Indexer where the include files can be found Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros, etc
I've assumed you are using gcc/g++.
If you are using something else you should use comparable options.
How you do the first two depends on the build system being used.
If it is a Managed Build (i.e., Eclipse creates a Makefile), set the options using Project --> Properties --> Settings --> Tool Settings tab
For any other build methods (e.g., CMake or your own makefiles), you should refer to tutorials on using them.
The README.md file at github tells you what you need for compiling and linking https://github.com/json-c/json-c/blob/master/README.md#linking
]]>David Vavra2021-03-27T05:36:38-00:00Re: How to use Json-c parser or any other parser in Eclipse for C programming in Windows
https://www.eclipse.org/forums/index.php/mv/msg/1107483/1839749/#msg_1839749
What did you mean by "include files". Does it ,mean header and c files.
I use MinGW.
I have these files in the json-c folder.
]]>Nishith Thottam2021-03-27T07:44:41-00:00Re: How to use Json-c parser or any other parser in Eclipse for C programming in Windows
https://www.eclipse.org/forums/index.php/mv/msg/1107483/1839759/#msg_1839759
You appear to be facing a very large learning curve.
This forum is not for programming questions.
I suggest you search the web for a tutorial on using this library
or ask at its github site.
]]>David Vavra2021-03-27T14:26:55-00:00