Error use gcc linking  RVCT2.2 c libraries

Note: This was originally posted on 19th March 2007 at http://forums.arm.com

I use RVCT2.2 armcc to complier files and get a library.
Then to use gcc link the library, but get
Error:
  undefined reference to '__aeabi_uread4'
  undefined reference to '__aeabi_uwrite4'

I know that the armcc and gcc are different to link the fwrite() or fread() functions,
RVCT 2.2  armcc use an optimized one, i,e. __aeabi_

But , how to solve such problem? 
Have  any simple armcc compiler options to avoid such questions?

Any suggestion approciated.

Parents
  • Note: This was originally posted on 3rd April 2007 at http://forums.arm.com

    By default GCC compiles using wchar_t as a 32-bit wide type, whereas RVCT uses it as a 16-bit wide type.

    I'm not sure either are configurable from the command line, although recompiling GCC from source with a 16-bit wchar_t is always an option...

    Cheers

    Isogen
Reply
  • Note: This was originally posted on 3rd April 2007 at http://forums.arm.com

    By default GCC compiles using wchar_t as a 32-bit wide type, whereas RVCT uses it as a 16-bit wide type.

    I'm not sure either are configurable from the command line, although recompiling GCC from source with a 16-bit wchar_t is always an option...

    Cheers

    Isogen
Children
No data
More questions in this forum