Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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
-
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.
-
I tried part A of your suggestion and still get error. Undefined reference to 'json_tokener_parse','json_object_to_json_string' ,etc.
-
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.