[U-Boot-Users] facing problem in cmd_flash.c

19 Sep
2006
19 Sep
'06
8:38 a.m.
while compiling for my lsi(arm7tdmi based) board i am getting some undefined references in cmd_flash.c like flash_print_info, flash_erase. i have included common.h(which includes flash.h) in the cmd_flash.c and in the flash.c also.
in flash.c i have given the definition for flash_print_info and flash_erase. Here in the following i am giving the snippets of the code where i am getting the error.
in cmd_flash.c - #include <common.h> .... flash_print_info (&flash_info[bank]); //here at this point i am getting undefined reference error
.......
in flash.h - ..... extern void flash_print_info (flash_info_t *);
in /board/flash.c -
void flash_print_info (flash_info_t *info) { int i; ...... }
can anybody please solve this problem
--
thanks & regards
Subhransu Sekhar Prusty
+91-9885212073
6809
Age (days ago)
6809
Last active (days ago)
0 comments
1 participants
participants (1)
-
Subhransu Prusty