当前位置: 技术问答>linux和unix
程序调试问题,关于文件的fopen fclose fwrite的问题(在线等!)谢谢!
来源: 互联网 发布时间:2015-08-20
本文导语: 程序要实现的是把一组数据保存成为bmp文件. 我在程序里面用了malloc和free还用了fopen fclose fwrite这些函数, 程序在windows下面运行是没有问题的,但是用在开发板上(arm-linux)下面就出现这些报错,程序编译都通过,而且运行...
程序要实现的是把一组数据保存成为bmp文件.
我在程序里面用了malloc和free还用了fopen fclose fwrite这些函数, 程序在windows下面运行是没有问题的,但是用在开发板上(arm-linux)下面就出现这些报错,程序编译都通过,而且运行结果也正确(可以输出我要的bmp文件),就是在运行的期间有这些东西跑出来.不知道,有没有人也出现过这样的现象,要怎么解决阿?希望得到大家的帮助,谢谢!谢谢!
00089: symbol=free; lookup in file=./dpa
00089: symbol=free; lookup in file=/lib/libm.so.6
00089: symbol=free; lookup in file=/lib/libc.so.6
00089: symbol=free; lookup in file=/lib/ld-linux.so.2
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `free' [GLIBC_2.0]
00089: symbol=fopen; lookup in file=./dpa
00089: symbol=fopen; lookup in file=/lib/libm.so.6
00089: symbol=fopen; lookup in file=/lib/libc.so.6
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fopen' [GLIBC_2.1]
00089: symbol=malloc; lookup in file=./dpa
00089: symbol=malloc; lookup in file=/lib/libm.so.6
00089: symbol=malloc; lookup in file=/lib/libc.so.6
00089: symbol=malloc; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `malloc' [GLIBC_2.0]
00089: symbol=_IO_file_init; lookup in file=./dpa
00089: symbol=_IO_file_init; lookup in file=/lib/libm.so.6
00089: symbol=_IO_file_init; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_file_init' [GLIBC_2.1]
00089: symbol=_IO_link_in; lookup in file=./dpa
00089: symbol=_IO_link_in; lookup in file=/lib/libm.so.6
00089: symbol=_IO_link_in; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_link_in' [GLIBC_2.0]
00089: symbol=_IO_file_fopen; lookup in file=./dpa
00089: symbol=_IO_file_fopen; lookup in file=/lib/libm.so.6
00089: symbol=_IO_file_fopen; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_file_fopen' [GLIBC_2.1]
00089: symbol=__open; lookup in file=./dpa
00089: symbol=__open; lookup in file=/lib/libm.so.6
00089: symbol=__open; lookup in file=/lib/libc.so.6
00089: symbol=__open; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `__open' [GLIBC_2.0]
00089: symbol=strstr; lookup in file=./dpa
00089: symbol=strstr; lookup in file=/lib/libm.so.6
00089: symbol=strstr; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `strstr' [GLIBC_2.0]
00089: symbol=fwrite; lookup in file=./dpa
00089: symbol=fwrite; lookup in file=/lib/libm.so.6
00089: symbol=fwrite; lookup in file=/lib/libc.so.6
00089: symbol=fwrite; lookup in file=/lib/ld-linux.so.2
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fwrite' [GLIBC_2.0]
00089: symbol=fseek; lookup in file=./dpa
00089: symbol=fseek; lookup in file=/lib/libm.so.6
00089: symbol=fseek; lookup in file=/lib/libc.so.6
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fseek' [GLIBC_2.0]
00089: symbol=_IO_seekoff; lookup in file=./dpa
00089: symbol=_IO_seekoff; lookup in file=/lib/libm.so.6
00089: symbol=_IO_seekoff; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_seekoff' [GLIBC_2.0]
00089: symbol=_IO_switch_to_get_mode; lookup in file=./dpa
00089: symbol=_IO_switch_to_get_mode; lookup in file=/lib/libm.so.6
00089: symbol=_IO_switch_to_get_mode; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_switch_to_get_mode' [GLIBC_2.0]
00089: symbol=_IO_unsave_markers; lookup in file=./dpa
00089: symbol=_IO_unsave_markers; lookup in file=/lib/libm.so.6
00089: symbol=_IO_unsave_markers; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_unsave_markers' [GLIBC_2.0]
00089: symbol=fclose; lookup in file=./dpa
00089: symbol=fclose; lookup in file=/lib/libm.so.6
00089: symbol=fclose; lookup in file=/lib/libc.so.6
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fclose' [GLIBC_2.1]
00089: symbol=_IO_file_close_it; lookup in file=./dpa
00089: symbol=_IO_file_close_it; lookup in file=/lib/libm.so.6
00089: symbol=_IO_file_close_it; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_file_close_it' [GLIBC_2.1]
00089: symbol=_IO_do_write; lookup in file=./dpa
00089: symbol=_IO_do_write; lookup in file=/lib/libm.so.6
00089: symbol=_IO_do_write; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_do_write' [GLIBC_2.1]
00089: symbol=__close; lookup in file=./dpa
00089: symbol=__close; lookup in file=/lib/libm.so.6
00089: symbol=__close; lookup in file=/lib/libc.so.6
00089: symbol=__close; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `__close' [GLIBC_2.0]
00089: symbol=_IO_un_link; lookup in file=./dpa
00089: symbol=_IO_un_link; lookup in file=/lib/libm.so.6
00089: symbol=_IO_un_link; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_un_link' [GLIBC_2.0]
00089: symbol=_IO_default_finish; lookup in file=./dpa
00089: symbol=_IO_default_finish; lookup in file=/lib/libm.so.6
00089: symbol=_IO_default_finish; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_default_finish' [GLIBC_2.0]
00089: symbol=free; lookup in file=./dpa
00089: symbol=free; lookup in file=/lib/libm.so.6
00089: symbol=free; lookup in file=/lib/libc.so.6
00089: symbol=free; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `free' [GLIBC_2.0]
我在程序里面用了malloc和free还用了fopen fclose fwrite这些函数, 程序在windows下面运行是没有问题的,但是用在开发板上(arm-linux)下面就出现这些报错,程序编译都通过,而且运行结果也正确(可以输出我要的bmp文件),就是在运行的期间有这些东西跑出来.不知道,有没有人也出现过这样的现象,要怎么解决阿?希望得到大家的帮助,谢谢!谢谢!
00089: symbol=free; lookup in file=./dpa
00089: symbol=free; lookup in file=/lib/libm.so.6
00089: symbol=free; lookup in file=/lib/libc.so.6
00089: symbol=free; lookup in file=/lib/ld-linux.so.2
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `free' [GLIBC_2.0]
00089: symbol=fopen; lookup in file=./dpa
00089: symbol=fopen; lookup in file=/lib/libm.so.6
00089: symbol=fopen; lookup in file=/lib/libc.so.6
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fopen' [GLIBC_2.1]
00089: symbol=malloc; lookup in file=./dpa
00089: symbol=malloc; lookup in file=/lib/libm.so.6
00089: symbol=malloc; lookup in file=/lib/libc.so.6
00089: symbol=malloc; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `malloc' [GLIBC_2.0]
00089: symbol=_IO_file_init; lookup in file=./dpa
00089: symbol=_IO_file_init; lookup in file=/lib/libm.so.6
00089: symbol=_IO_file_init; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_file_init' [GLIBC_2.1]
00089: symbol=_IO_link_in; lookup in file=./dpa
00089: symbol=_IO_link_in; lookup in file=/lib/libm.so.6
00089: symbol=_IO_link_in; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_link_in' [GLIBC_2.0]
00089: symbol=_IO_file_fopen; lookup in file=./dpa
00089: symbol=_IO_file_fopen; lookup in file=/lib/libm.so.6
00089: symbol=_IO_file_fopen; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_file_fopen' [GLIBC_2.1]
00089: symbol=__open; lookup in file=./dpa
00089: symbol=__open; lookup in file=/lib/libm.so.6
00089: symbol=__open; lookup in file=/lib/libc.so.6
00089: symbol=__open; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `__open' [GLIBC_2.0]
00089: symbol=strstr; lookup in file=./dpa
00089: symbol=strstr; lookup in file=/lib/libm.so.6
00089: symbol=strstr; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `strstr' [GLIBC_2.0]
00089: symbol=fwrite; lookup in file=./dpa
00089: symbol=fwrite; lookup in file=/lib/libm.so.6
00089: symbol=fwrite; lookup in file=/lib/libc.so.6
00089: symbol=fwrite; lookup in file=/lib/ld-linux.so.2
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fwrite' [GLIBC_2.0]
00089: symbol=fseek; lookup in file=./dpa
00089: symbol=fseek; lookup in file=/lib/libm.so.6
00089: symbol=fseek; lookup in file=/lib/libc.so.6
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fseek' [GLIBC_2.0]
00089: symbol=_IO_seekoff; lookup in file=./dpa
00089: symbol=_IO_seekoff; lookup in file=/lib/libm.so.6
00089: symbol=_IO_seekoff; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_seekoff' [GLIBC_2.0]
00089: symbol=_IO_switch_to_get_mode; lookup in file=./dpa
00089: symbol=_IO_switch_to_get_mode; lookup in file=/lib/libm.so.6
00089: symbol=_IO_switch_to_get_mode; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_switch_to_get_mode' [GLIBC_2.0]
00089: symbol=_IO_unsave_markers; lookup in file=./dpa
00089: symbol=_IO_unsave_markers; lookup in file=/lib/libm.so.6
00089: symbol=_IO_unsave_markers; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_unsave_markers' [GLIBC_2.0]
00089: symbol=fclose; lookup in file=./dpa
00089: symbol=fclose; lookup in file=/lib/libm.so.6
00089: symbol=fclose; lookup in file=/lib/libc.so.6
00089: binding file ./dpa to /lib/libc.so.6: normal symbol `fclose' [GLIBC_2.1]
00089: symbol=_IO_file_close_it; lookup in file=./dpa
00089: symbol=_IO_file_close_it; lookup in file=/lib/libm.so.6
00089: symbol=_IO_file_close_it; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_file_close_it' [GLIBC_2.1]
00089: symbol=_IO_do_write; lookup in file=./dpa
00089: symbol=_IO_do_write; lookup in file=/lib/libm.so.6
00089: symbol=_IO_do_write; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_do_write' [GLIBC_2.1]
00089: symbol=__close; lookup in file=./dpa
00089: symbol=__close; lookup in file=/lib/libm.so.6
00089: symbol=__close; lookup in file=/lib/libc.so.6
00089: symbol=__close; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `__close' [GLIBC_2.0]
00089: symbol=_IO_un_link; lookup in file=./dpa
00089: symbol=_IO_un_link; lookup in file=/lib/libm.so.6
00089: symbol=_IO_un_link; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_un_link' [GLIBC_2.0]
00089: symbol=_IO_default_finish; lookup in file=./dpa
00089: symbol=_IO_default_finish; lookup in file=/lib/libm.so.6
00089: symbol=_IO_default_finish; lookup in file=/lib/libc.so.6
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `_IO_default_finish' [GLIBC_2.0]
00089: symbol=free; lookup in file=./dpa
00089: symbol=free; lookup in file=/lib/libm.so.6
00089: symbol=free; lookup in file=/lib/libc.so.6
00089: symbol=free; lookup in file=/lib/ld-linux.so.2
00089: binding file /lib/libc.so.6 to /lib/libc.so.6: normal symbol `free' [GLIBC_2.0]
|
你确定用的是交叉编译并且静态编译吗?