当我尝试使用 gcc 在 ubuntu 上编译我的程序时,出现以下错误:
main.c:(.text+0x162): undefined reference to
json_parse' main.c:(.text+0x182): undefined reference to
json_value_free'
但是,这些函数包含在一个名为 json.h 的文件中,我将其导入 main.c 并包含在我的 gcc 命令中。
有人有线索吗?
当我尝试使用 gcc 在 ubuntu 上编译我的程序时,出现以下错误:
main.c:(.text+0x162): undefined reference to
json_parse' main.c:(.text+0x182): undefined reference to
json_value_free'
但是,这些函数包含在一个名为 json.h 的文件中,我将其导入 main.c 并包含在我的 gcc 命令中。
有人有线索吗?