User forums > Using Code::Blocks

JSON-C in code::blocks

(1/1)

dyni:
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

oBFusCATed:
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.

dyni:
I tried part A of your suggestion and still get error. Undefined reference to 'json_tokener_parse','json_object_to_json_string' ,etc.

MortenMacFly:

--- Quote from: 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.

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version