Search code examples
azureazure-sdkcjson

undefined reference to `cJSON_Parse'


I am using Azure SDK. In the SDK I have included cJSON functionalities, I know I need to link cJSON.h to my code. But in azure makefile, I am finding it difficult. Do help in linking the cJSON header file.


Solution

  • You could add the json library to the makefile to solve this problem.

    Add

    -ljson   \
    

    to the linkflags in the makefile in the app directory and then was able to successfully compile.

    Here is the similar thread.