Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to use Json-c parser or any other parser in Eclipse for C programming in Windows(I use Eclipse C/C++ developer IDE in Windows 10 I have downloaded json-c parser but I dont know to use it in eclipse for C Programming. I downloaded it from this link https://github.com/json-c/json-c.)
How to use Json-c parser or any other parser in Eclipse for C programming in Windows [message #1839728] Fri, 26 March 2021 14:44 Go to next message
Nishith Thottam is currently offline Nishith ThottamFriend
Messages: 3
Registered: October 2020
Junior Member
I use Eclipse C/C++ developer IDE in Windows 10 I have downloaded json-c parser but I dont know to use it in eclipse for C Programming. I downloaded it from this link 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

[Updated on: Fri, 26 March 2021 14:46]

Report message to a moderator

Re: How to use Json-c parser or any other parser in Eclipse for C programming in Windows [message #1839741 is a reply to message #1839728] Sat, 27 March 2021 05:36 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You need to understand how to do this without Eclipse
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

[Updated on: Sat, 27 March 2021 05:50]

Report message to a moderator

Re: How to use Json-c parser or any other parser in Eclipse for C programming in Windows [message #1839749 is a reply to message #1839741] Sat, 27 March 2021 07:44 Go to previous messageGo to next message
Nishith Thottam is currently offline Nishith ThottamFriend
Messages: 3
Registered: October 2020
Junior Member
Thanks for your response.
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.
index.php/fa/40230/0/
  • Attachment: jsonc.png
    (Size: 41.92KB, Downloaded 504 times)

[Updated on: Sat, 27 March 2021 07:46]

Report message to a moderator

Re: How to use Json-c parser or any other parser in Eclipse for C programming in Windows [message #1839759 is a reply to message #1839749] Sat, 27 March 2021 14:26 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Yes, usually headers and not very often c source.
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.
Previous Topic:pigpiod says that Pi400 does not appear to be a raspberry pi
Next Topic:Display names of remote threads
Goto Forum:
  


Current Time: Thu Apr 25 00:36:56 GMT 2024

Powered by FUDForum. Page generated in 0.02636 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top