- This topic has 0 replies, 1 voice, and was last updated 2 weeks, 2 days ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
(This message was transferred over from our old forum)
Posted August 19, 2015
By Todd DeBoer
[hr]
On 7/27/11 Dcck asked, “I just downloaded the latest Crossworks 2.1 and tried to compile the
uEZ\\Build\\uEZ GUI\\uEZGUI-2478-70WVE\\CrossWorks2.0\\UEZGUIDemo
I also just downloaded uEZ 1.09
These are the linker errors I get.
C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.1/lib/libc_targetio_impl_v4t_a_le.a(libc_targetio_impl.o): In function `getchar’:
libc_targetio_impl.c:(.text.libc.getchar+0x0): multiple definition of `getchar’
ARM Flash Debug/uEZGUI_2478_70WVE_uEZPlatform.o:C:/Projects/uEZ/Build/uEZ GUI/uEZGUI-2478-70WVE/CrossWorks2.0/UEZGUIDemo/../../../../../Source/Platform/FDI/uEZGUI_2478_70WVE/uEZGUI_2478_70WVE_uEZPlatform.c:229: first defined here
Warning: ../../../../../Source/Processor/NXP/LPC2478/LPC247x_USBHost_Crossworks2.0.o does not support interworking, whereas ARM Flash Debug/uEZGUI-2478-70WVE.elf does
It seems there is a getchar function in the uEZGUI_2478_70WVE_uEZPlatform.c file and is causing a multiple definition because that function is also in stdio.
I really don’t know what to make of the Warning other than it should like the LPC247x_USBHost_Crossworks2.0.o may have been compiled in thumb mode.???”
[hr]
(Follow up post)
Answered:
I was able to get the project to compile to compile with version Crossworks 2.0.7, so there must be a change in the compiler’s library.
As a quick fix, you can modify uEZGUI_2478_70WVE_uEZPlatform.c by removing the getchar definition. It isn’t being used in the uEZGUIDemo currently.