C (64/178)

From:Colin Wenzel
Date:15 Jul 2000 at 18:16:49
Subject:Re: I am going OO nuts !!!

On 16-Jul-00, Paul Hill wrote:
> On 15-Jul-00 15:25:03, Allan Odgaard wrote:
>> On 15-Jul-00, Colin Wenzel wrote:

>>> However, linking is another story, I cannot resolve the
>>> symbols: DoMethod() & MUI_MakeObject()
>>> [...]
>>> Could you or anyone else supply the stub routines or
>>> prototype info for these calls please.....

>> Though the latter should be done by the compiler, by using "#pragma
>> tagcall" in the appropriate pragma file. And the former is a
>> function of amiga.lib, it's prototyped in "clib/alib_protos.h".

> For GCC these calls are stored as macros [1] in the appropriate proto
> file. They're generated form the fd/clib files by fd2inline.

> [1] this method is less than ideal and can cause problems, especially
> with MUI. I got around this by sticking MUI_MakeObject() in a .lib
> and commenting out the sections in inline/muimaster.h.
> Not nice. I know.

I'm sorry, but I don't really understand exactly what you mean
when you say they are stored as macros...
Is the # pragma definition what you call a macro ??

What I need is the stub code for the rom call DoMethod()
in whatever library it is in.... (intuition ??)
and MUI_MakeObject() as it appears not to be in mui.lib.

The only way I know of resolving these linker symbol is to
provide a stub to link to the object code, although in the
last week or so, I understand (mostly) that the compiler
can automatically generate the ROM entry point by using
a # pragma definition of the ROM jump instead of
having the stub in a linkable library.. (Just read about them)

I am using the Aztec 5.2 compiler & the "amiga.lib"
on the dev cd's are not compatible anymore,
so I have always had to build my own after about WB1.3 days.

To do this, I need the stub code, which I can simply make from
the FD files supplied on the CD,
but this function is not in any of them.

As this is the very first time I have ever done any of this OO stuff
I have not needed a stub for these functions,
so that is why they are unresolved.

Regards



_________________________________________

Colin Wenzel. Australia.

EMAIL: colstv@hotkey.net.au
URL: http://www.hotkey.net.au/~colstv/
ICQ: 17608330
AMIGA: 4000T, 68060/50, 150Mb RAM,
OS 3.5, Spectrum Gfx Card.
_________________________________________

------------------------------------------------------------------------
The Most Expensive Thing You Can Haul Is An Empty Trailer.
http://click.egroups.com/1/5776/1/_/451227/_/963681489/
------------------------------------------------------------------------