Skip to main content



      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 10:44 Go to next message
Eclipse UserFriend
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 10:46] by 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 01:36 Go to previous messageGo to next message
Eclipse UserFriend
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 01:50] by 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 03:44 Go to previous messageGo to next message
Eclipse UserFriend
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 745 times)

[Updated on: Sat, 27 March 2021 03:46] by 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 10:26 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 11:03:40 EDT 2025

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

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

Back to the top