Problem with gcc and ld

Ramiro rapocol@etsii.upv.es
Thu Jan 3 02:39:00 GMT 2002


Hi,  
I'm using a EVB7045F and the GNU gcc compiler.  
I have some problems with gcc and ld. 
The first problem is that when I try to link a file that contain float numbers with ld then appears the next error message:  

"C:\WINDOWS\Escritorio\P4>ld -lm -lc vects.o start2.o hwinit.o convad.o -Tmio2.lnk 
convad.o(.text+0xac):convad.c: undefined reference to `___ashiftrt_r4_6' 
convad.o(.text+0xb4):convad.c: undefined reference to `___floatsisf' 
convad.o(.text+0xc0):convad.c: undefined reference to `___mulsf3' 
"  

If I link directly with gcc this problem disappears. 
But if I use gcc for link, then appears the second problem. 
When I make a ouput file in motorola srec format (.mot), gcc produce a invalid file.mot. 
When I try to open file.mot with Flash Development Toolkit, then the program hang up.  
  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20020103/918f28ff/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ramiro Polo.vcf
Type: text/x-vcard
Size: 125 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20020103/918f28ff/attachment.vcf>


More information about the Gcc-help mailing list