Author Topic: JSON-C in code::blocks  (Read 11148 times)

Offline dyni

  • Single posting newcomer
  • *
  • Posts: 2
JSON-C in code::blocks
« on: May 23, 2012, 05:20:34 pm »
Hello,

I'm kinda new to code::blocks and was just wondering how do I use JSON-C in code block? I download JSON-C and whenever I tried using the include statement it would crash (No such file or directory). I don't have a .a file for the JSON-C to link it to.

Thank you

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline dyni

  • Single posting newcomer
  • *
  • Posts: 2
Re: JSON-C in code::blocks
« Reply #2 on: May 23, 2012, 06:22:29 pm »
I tried part A of your suggestion and still get error. Undefined reference to 'json_tokener_parse','json_object_to_json_string' ,etc.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: JSON-C in code::blocks
« Reply #3 on: May 23, 2012, 07:42:04 pm »
I tried part A of your suggestion and still get error. Undefined reference to 'json_tokener_parse','json_object_to_json_string' ,etc.
You are missing to link against the required libraries. Read the JSon developer manual for details, or ask in a JSon forum, this is not a C::B issue, so most likely you won't get a better answer than this here.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ