ע |

ChinaUnix.net

  ƽ̨ ̳ Ŀ
12һҳ
ʰ
鿴: 3096 | ظ: 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.

С

̳:
0
2009-12-30 11:26 |ʾȫ¥
#include <stdlib.h>

̳:
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һҳ
б

ֹ ظ

ڰ SQL ŻʵսѵӪ

ʦе縣ؼר򣬲뱾ογѵ㽫ջ
1. ܱдΪЧ SQL
2. ܽ70%ϵݿⳣŻ⣻
3. ܵõʦṩĸЧعߺͽ
4. ܾһջ񲻽 SQL Ż
ڹƱ8.8Żݣ
----------------------------------------
Żʱ䣺2019320ǰ

>>
  

ʢѶϢ޹˾. Ȩ 16024965-6 йֺ־ıţ11010802020122
йЭԱ  ϵhuangweiwei@it168.com
лйĺֹ֧ChinaUnix תرվעԭ

Cookies - ChinaUnix - Archiver - WAP - TOP