
24 Nov
2005
24 Nov
'05
3:23 p.m.
Hello
I am trying to use atoi in my code. I can not get the image to link properly when i try to add it. Here is my setup.
Addded to include/_exports.h EXPORT_FUNC(atoi)
Added to include/exports.h int atoi(const char *);
Added to common/exports.c gd->jt[XF_atoi] = (void *)atoi;
But when I do the make of u-boot, I get :
/gcc-lib/ppc-linux/3.3.3/pic -lgcc --end-group \ -Map u-boot.map -o u-boot common/libcommon.a(exports.o)(.got2+0x20): In function `jumptable_init': /home/davis/progs/c/u-boot-1.1.2/common/exports.c:14: undefined reference to `atoi' make: *** [u-boot] Error 1
However, I did the same thing for get_dcr and set_dcr and it worked.
Please advise,
JD