没有ide的情况下如何找到函数定义

如果要找printf,就重定义一个,然后编译,让编译器来找

int printf(char* s, ...){
return 0;
}

 

drivers/video/sunxi/bootGUI/fb_con.c:333:5: error: conflicting types for 'printf'
int printf(char* s, ...){
^~~~~~
In file included from include/linux/printk.h:8,
from include/linux/bug.h:7,
from include/common.h:28,
from drivers/video/sunxi/bootGUI/fb_con.c:17:

 

posted on 2024-10-24 10:38  zxddesk  阅读(11)  评论(0)    收藏  举报

导航