ע |

Chinaunix

  ƽ̨ ̳ Ŀ
12һҳ
ʰ
鿴: 3393 | ظ: 13

ΪʲôNo symbol "printf" []

̳:
0
2009-12-30 11:25 |ʾȫ¥
//hello.c
#include <stdio.h>
int main()
{
                printf("Hello, world\n");
                return 0;
}

$gcc hello.c
$gdb -q a.out
(gdb) disassemble printf
No symbol "printf" in current context.

ֹ

̳:
1

:2020-02-27 22:54:26
2009-12-30 11:26 |ʾȫ¥
ʾ: ֹ߱ɾ Զ

̳:
0
2009-12-30 11:26 |ʾȫ¥
gcc -o hello -static hello.c

̳:
0
2009-12-30 11:26 |ʾȫ¥
gcc hello.c -g
עIJòã

̳:
0
2009-12-30 11:30 |ʾȫ¥
ԭ prolj 2009-12-30 11:26
gcc hello.c -g
עIJòã

̳:
0
2009-12-30 13:03 |ʾȫ¥
ԭ prolj 2009-12-30 11:26
gcc hello.c -g
עIJòã

-gҲһ
뿴ʹö̬еĺġ

̳:
0
2009-12-30 13:07 |ʾȫ¥
glicûgdbõķűubuntuУװ-gͿô

̳:
0
2009-12-30 13:18 |ʾȫ¥
ԭ prolj 2009-12-30 13:07
glicûgdbõķűubuntuУװ-gͿô


õľubuntu-gDzС
$gcc hello.c -g
$gdb -q a.out
(gdb) disassemble printf
No symbol "printf" in current context.

run֮ԿࡣrunַӦþͱˡ

[ Դ 2009-12-30 13:24 ༭ ]

̳:
0
2009-12-31 00:47 |ʾȫ¥
㶯̬ӵijprintf libc.so ģgdb ȻҲӸ -static ijɾ̬ˣ
ҾͲ˵ʲôˡ

С

̳:
0
2009-12-31 08:32 |ʾȫ¥
ε-static˵ȫĶ

glibcȱʡstripģϢģcentosϵͳȥhttp://debuginfo.centos.org/Ӧglibc-debuginfoϵͳӦҲƵĶ
12һҳ
б

ֹ ظ

  

ʢѶϢ޹˾. Ȩ ICP16024965-6 йֺ־ıţ11010802020122 niuxiaotong@pcpop.com 17352615567
δٱר
йЭԱ  ϵhuangweiwei@itpub.net
лйĺֹ֧ChinaUnix תرվעԭ

Cookies - ChinaUnix - Archiver - WAP - TOP