私が構築して座っているにjson-c-0.9
静的にリンクしながら、テストバイナリをコンパイルしようとしています:libjson.a
/path/to/json-c-0.9/lib
$ gcc -g -v -Wall -std=gnu99 -static -L/path/to/json-c-0.9/lib -ljson test1.c -o test1
フォームのエラーが多数発生します。
/path/to/json-c-0.9/test1.c:17: undefined reference to `json_object_new_string'
/path/to/json-c-0.9/test1.c:18: undefined reference to `json_object_get_string'
/path/to/json-c-0.9/test1.c:19: undefined reference to `json_object_to_json_string'
/path/to/json-c-0.9/test1.c:20: undefined reference to `json_object_put'
/path/to/json-c-0.9/test1.c:22: undefined reference to `json_object_new_string'
etc.
テストバイナリをコンパイルしようとして何が欠けていますか?アドバイスありがとうございます。