ChinaUnix.net
相关文章推荐:

error implicit declaration of function

error: implicit declaration of function 'eth_copy_and_sum' 我的系统是ubuntu 10.04,后来重新编译内核3.0.4并使用之至今。 我正在写一个网卡驱动,使用了 eth_copy_and_sum 函数,报错如上。在我的系统里根本就找不到 eth_copy_and_sum 函数,仅在文件的注释里出现过。 我到网上找到这个网址,看了里面讲的,似乎正好解决我的问题。但它是 fedora 系统上的,不知可否用在我的系统上?高手帮忙看看。 http://www.fedoraforu...

by liklstar - 内核源码 - 2011-10-18 19:52:22 阅读(2536) 回复(0)

相关讨论

小弟写的一段代码: #include ..... #define PHONE_SET_MFPP  _IOW ('q', 0xc0, int) ... ioctl(fd, PHONE_SET_MFPP, value); ... 编译时总是报Warning: implicit declaration of function ‘PHONE_SET_MFPP’。 怎么才能不出现此warning?多谢!

by yypzgmmm - C/C++ - 2008-12-17 14:40:58 阅读(2113) 回复(3)

我的程序如下写: char buf[4096]; memset(buf, 0, 4096); 编译 gcc -Wall -o log log.c有警告如下: log.c:18: warning: implicit declaration of function `memset' 怎么办?请指点。另外,我是在UltraEdit上写程序然后通过ftp保存到linux机器上,每次编译都有如下警告: log.c:53:3: warning: no newline at end of file 在linux下用vi打开,不作任何改动直接保存,以上错误消失,怎么解决这种问题?

by swear77 - C/C++ - 2003-10-29 21:01:49 阅读(16102) 回复(5)

我把《Linux内核API完全参考手册》中的第一个内核代码__module_address.c 进行编译时,出现implicit declaration of function '__module_address'错误, 请问:该如何解决?谢谢

by netdoger - 内核源码 - 2013-09-27 10:04:02 阅读(1028) 回复(0)

编译程序中,老会出现这样的语句, warning: implicit declaration of function `Getfile' 谁能告诉我,这样的错误怎么改啊?谢谢~~

by love_xn - C/C++ - 2006-02-09 11:46:26 阅读(2516) 回复(3)

我的函数都是在lib库里定义,然后在程序里调用,但是在编译时出现“implicit declaration of function”错误,如何解决?谢谢!

by blue_sky - C/C++ - 2013-12-27 13:17:54 阅读(61810) 回复(9)

最近在改进SD卡的SEP4020驱动时,在改掉所有的warning时老报一个implicit declaration of function 的警告错误,上网查了下原因,原来有两种情况会产生这种情况 1 没有把函数所在的c文件生成.o目标文件 2 在函数所在的c文件中定义了,但是没有在与之相关联的.h文件中声明 [root@mail linux]# make CHK include/linux/version.h make[1]: “include/asm-arm/mach-types.h”是最新的。 CHK include/linux/compile.h ...

by fpseustar - Linux文档专区 - 2009-07-07 19:17:43 阅读(1003) 回复(0)

warning: function declaration isn't a prototype warning: function declaration isn't a prototype 出现此警告原因: 1: 函数没有声明。在你调用的这个函数前面加上该函数的定义即可。 main() { test(); } test (int a) { printf("test: %d\n", a); } 这个代码中如果在main函数前面加上“test (int a);”就可以正确运行了 2: #include #include #include #include static int hello_init_module(void) { printk("He...

by againyuan - Linux文档专区 - 2008-12-27 19:35:30 阅读(4090) 回复(0)

warning: function declaration isn't a prototype 出现此警告原因: 1: 函数没有声明。在你调用的这个函数前面加上该函数的定义即可。 main() { test(); } test (int a) { printf("test: %d\n", a); } 这个代码中如果在main函数前面加上“test (int a);”就可以正确运行了 2: #include #include #include #include static int hello_init_module(void) { printk("Hello, world - this is the kernel speaking\n"); ...

by todaygood - Linux文档专区 - 2007-01-27 14:42:56 阅读(395) 回复(0)

#include #include #include #include static int hello_init_module(void) { printk("Hello, world - this is the kernel speaking\n"); return 0; } /* Cleanup - undid whatever init_module did */ static void hello_cleanup_module(void) { printk("Short is the life of a kernel module\n"); } module_init(hello_init_module); module_exit(hello_cleanup_module); 上面代码是内核中的一个模块, 如果...

by ebiyuan - Linux文档专区 - 2009-09-08 00:08:01 阅读(1031) 回复(0)
by WIIW - 内核/嵌入技术 - 2005-09-10 08:41:27 阅读(1114) 回复(2)