Well it turns out doing as I just suggested works for floating point
conversion, however atof() did not work for me.
I ended up using the older cross-compiler gcc-3.3.4-glibc-2.3.2 and now all
floating point math works include atof()
I did have to copy over the libstd.so.5 from the crosscompiler library onto the
board into the /usr/lib to get it to work.
with this cross-compiler and i did not have to have any linker options at all.
I was also able to build with g++.
Not sure why i could not get atof() working with a newer version of the
cross-compile. If I every figure it out I will post it.
--- In "dannyd5000" <> wrote:
>
> I now have it working but only if i use gcc and not g++ for linking
>
> /usr/local/arm-oabi-toolchain/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-g++
> -o build/target/linux2/arm9/app/app -lm -lc -lstdc++ "list of object files
> here"
>
> Using g++ links but I get a failure on the TS-7500 at run time when my
> application uses atof
>
> here is the error
> /app: relocation error: ./app: symbol __truncdfsf2, version GCC_3.0 not
> defined in file libgcc_s.so.1 with link time reference
>
>
> Using gcc links and runs on the board with no problems
>
> /usr/local/arm-oabi-toolchain/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
> -o /mnt/project/pems/ptc/build/target/linux2/arm9/app/app -lm -lc -lstdc++
>
>
> Any ideas as to why?
>
>
> --- In "al" <mitch.stanek@> wrote:
> >
> > No special compiler settings are needed, but you will need to use the -lm
> > linker option to include the match library.
> >
> >
> > --- In "dannyd5000" <dannyd4000@> wrote:
> > >
> > > I am able to crosscompile and run my software on the board without any
> > > problems.
> > >
> > > However when I try to use floating point in my software I am having
> > > runtime issues.
> > >
> > > Would those of you using floating point mind posting all of your compiler
> > > and linking flags.
> > >
> > > Thanks in advance
> > >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|