From: Dave H. <dhy...@gm...> - 2007-09-13 18:23:37
|
Hi Anthony, On 9/13/07, Anthony DiRenzo <ant...@ya...> wrote: > I am porting legacy software into the Gumstix environment. One of the > libraries that the code uses is from stdlib.h. It is the gcvt() function > which converts a number to a string =96 kind of like atoi() or atod() in > reverse. > > I included the path in my =96I path to the stdlib.h in my ARM file struct= ure > but I keep getting compilation errors. Compilation error? Or linker error? If things are configured properly (I checked in build 1513), then the macro __UCLIBC_SUSV3_LEGACY__ should be set to 1 in build_arm_nofpu/staging_dir/include/bits/uClibc_config.h, which should cause the gcvt prototype to be available from stdlib.h. The gcvt function itself can be found in the runtime library itself (so you shouldn't need any additional options to include it). You can do these steps to verify: cd gumstix-buildroot/buildarm_nofpu/staging_dir/lib ../bin/arm-linux-nm libc.a | grep gcvt.a and you should see something like the following printed: gcvt.os: 00000000 T gcvt The 'T' tells me that the function is included in libc.a Perhaps you can show us the actual error that you're seeing so we can help better. --=20 Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |