Page 1 of 1
"undefined reference to `__udivsi3'"
Posted: Fri Aug 02, 2013 10:38 pm
by M-374 LX
If I try to do a division and compile, I get the following message:
Code: Select all
undefined reference to `__udivsi3'
What is the solution?
Posted: Tue Aug 13, 2013 11:54 am
by Stef
What tool do you use to compile your source ? the function should be included in sega.s boot file.
Posted: Wed Aug 14, 2013 10:14 pm
by M-374 LX
Stef wrote:What tool do you use to compile your source ? the function should be included in sega.s boot file.
I use GCC under Linux.
The problem seems to be solved by linking one of the GCC libraries.
I found an "ldiv" label in the startup code.
Posted: Sat Aug 17, 2013 10:44 pm
by Stef
Oh yeah you may need the libc as well the sega.s header.