Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3625189
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2019-10-14 11:04:18

[root@localhost aes]#gcc -o hello hello.c -I /home/hello/include -L /home/hello/lib -lworld
[root@localhost aes]#
[root@localhost aes]#
[root@localhost aes]# gcc test.c aes.c base64.c json.c license.c -o test -lcurl -lm
[root@localhost aes]#
[root@localhost aes]#
[root@localhost aes]# ls
aes.c  aes.h  base64.c  base64.h  json.c  json.h  license.c  license.h  test  test.c
[root@localhost aes]#
[root@localhost aes]#
[root@localhost aes]#
[root@localhost aes]#
[root@controller /]#
[root@controller /]# gcc b.c
/tmp/ccktRy6T.o:在函数‘main’中:
b.c:(.text+0x94):对‘cJSON_Parse’未定义的引用
b.c:(.text+0xfd):对‘cJSON_GetObjectItem’未定义的引用
b.c:(.text+0x126):对‘cJSON_Print’未定义的引用
collect2: 错误:ld 返回 1
[root@controller /]# gcc b.c cJSON.c
/tmp/ccyUaS34.o:在函数‘parse_number’中:
cJSON.c:(.text+0x4c0):对‘pow’未定义的引用
/tmp/ccyUaS34.o:在函数‘print_number’中:
cJSON.c:(.text+0x82e):对‘floor’未定义的引用
collect2: 错误:ld 返回 1
[root@controller /]# gcc b.c cJSON.c -lm
[root@controller /]#
[root@controller /]#


阅读(1276) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~