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 / 3811
3810  |  3812
Subject: 
Re: compiling problmes 2
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 27 Sep 2004 17:22:13 GMT
Viewed: 
8181 times
  
On Monday 27 September 2004 14:13, ruessel wrote:

I looked for some of those references and all of them are defined as extern in
some header-files. So they must be declared in an assembler-file , isn't it? And
by the way, I searched the whole directory - even the header files - so those
unresolved references are defined nowhere in the whole BrickOS-folder.

Where can I get some information how to define these macros?

Some of the functions are inline functions, that are *defined* in the
header files, e.g.cputc_hex is defined in include/conio.h.  With gcc you need
to compile with optimization on, so that it will inline these functions correctly.
Another possibility is to replace extern keyword with static, which AFAIK has the
same effect with optimization on, but includes the functions if compiled without
optimizations.

Some others are defined in h8300.rcx.  This is a linker script that maps theses
variables to hard-coded addresses used by the ROM.  E.g. AD_D is a unsigned
byte whose address is 0xffe6.

HTH,
  Jochen



Message has 1 Reply:
  Re: compiling problmes 2
 
(...) Hello Jochen, hello everybody, thank you very much. Both of your hints helped a lot. As it were 271 linker-errors before your help, there are just 40 left now. Maybe someone can help me and tell me where the other references are defined and (...) (20 years ago, 7-Oct-04, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: compiling problmes 2
 
Can't be that the unresolved references are from the code I want to add to BrickOS, because I also tried to compile just the BrickOS-files (without the code I want to add) and the same errors appeared. (...) I looked for some of those references and (...) (20 years ago, 27-Sep-04, to lugnet.robotics.rcx.legos)

7 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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