public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working
@ 2005-11-24 14:23 John Davis
  2005-11-24 14:35 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: John Davis @ 2005-11-24 14:23 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-28 15:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-24 14:23 [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working John Davis
2005-11-24 14:35 ` Wolfgang Denk
     [not found]   ` <6a7ac2300511240637p1b281106k2849ac3bb5a96715@mail.gmail.com>
2005-11-24 14:52     ` Fwd: " John Davis
2005-11-24 16:16       ` David Jander
2005-11-24 16:42         ` Wolfgang Denk
2005-11-28 15:30           ` John Davis
2005-11-24 15:53     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox