This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fool Question


Hi, My name is Jefferson Paredes,

I´m working in a project with floating point operation in H8s
Microcontroller but I dont know if the h8300-hms-gcc or h8300-hms-ld
have all the necesary parameters to create the .mot file and  what do I
need to avoid the errors shown below

C:\cygnus\h8\test1>type test.c			/* the source code to
demostrate the operation */

volatile float c;
unsigned int a = 1;
unsigned int b = 2;

main()

{
        char string[20];
        c = a / b;
        sprintf(string,"%f",c);	<--------------------/* is this valid..?
*/
}

C:\cygnus\h8\test1>h8300-hms-gcc  -save-temps test.c

C:\cygnus\h8\test1>h8300-hms-ld test.o -o test.mot
h8300-hms-ld: warning: cannot find entry symbol _start; defaulting to
00000100
test.o(.text+0x16):test.c: undefined reference to `__udivhi3'
<--------------------------------------/* how can I avoid this error */
test.o(.text+0x30):test.c: undefined reference to `__floatsisf'
<--------------------------------------/* and this
test.o(.text+0x58):test.c: undefined reference to `__addsf3'
<--------------------------------------/* and this
test.o(.text+0x96):test.c: undefined reference to `sprintf'
<--------------------------------------/* ????????

C:\cygnus\h8\test1>


Excuse me that fool question , i´m new in gcc, 


Best Regards

Jefferson Paredes C.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]