To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1402
1401  |  1403
Subject: 
Linking failure when 'making' an lx file
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 28 Aug 2000 16:07:54 GMT
Viewed: 
1237 times
  
Hi

Can anyone tell me why I'm getting a linking failure when trying to compile
my C code, in the standard way. The linker is failing to find a fucntion I
have defined in my source:

/usr/local/crossgcc/h8300-hitachi-hms/bin/h8300-hitachi-hms-ld -T
../boot/legOS.lds -relax -L/home/ryancd/legOS/lib nanOrb.o  -lc -lmint -lfloat
-lc++ -o nanOrb.ds1 -Ttext 0xb000
nanOrb.o(.text+0xcc):nanOrb.c: undefined reference to `___ucmpsi2'
nanOrb.o(.text+0x482):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x4b4):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x4de):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x516):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x532):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x55a):nanOrb.c: more undefined references to `_decoder_pop_ul'
follow
nanOrb.o(.text+0xcc):nanOrb.c: undefined reference to `___ucmpsi2'
nanOrb.o(.text+0x482):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x4b4):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x4de):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x516):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x532):nanOrb.c: undefined reference to `_decoder_pop_ul'
nanOrb.o(.text+0x55a):nanOrb.c: more undefined references to `_decoder_pop_ul'
follow

make: *** [nanOrb.ds1] Error 1

The function is declared in the source file.

Thanks,

Colin Ryan



Message has 1 Reply:
  Re: Linking failure when 'making' an lx file
 
(...) Sorry about the extra stuff, the linking problem was due to the compiler trying to find the above link "___ucmpsi2". When I used h8300-hitachi-hms-nm I could see all the methods and links in my code, and this was the only strange looking one. (...) (24 years ago, 28-Aug-00, to lugnet.robotics.rcx.legos)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR