Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: dyni on May 23, 2012, 05:20:34 pm

Title: JSON-C in code::blocks
Post by: dyni 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
Title: Re: JSON-C in code::blocks
Post by: oBFusCATed on May 23, 2012, 05:35:41 pm
Try reading this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

And the other FAQ entries, also read the manual.
Title: Re: JSON-C in code::blocks
Post by: dyni 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.
Title: Re: JSON-C in code::blocks
Post by: MortenMacFly 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.