MorphOS Developer
Posts: 1520 from 2003/2/24
From: Finland
Quote:
3. How to link the library to get strlen(), memset() etc.?
You don't. At least not yet. Only solution is that you write memset(), strlen() etc replacements...
Quote:
4. My test skeleton (more or less the same as the skeleton in the devkit) compiles and the test program compiles but if I call the test function, nothing at all happens?! No crash, no action.
Hmm... You don't need gates anymore. You can simplify jumptable:
static const APTR FuncTable[] =
{
(APTR) FUNCARRAY_32BIT_NATIVE,
(APTR) LIB_Open,
....
(APTR) -1
};
This creates jump table accessible from both PPC and 68k code (== AmigaOS 3.x compatible).
(FUNCARRAY_32BIT_SYSTEMV would create PPC only jump table.)
Could not find any error from library or test app though... it should work as far as I can see. But when creating inlines with cvinclude.pl you should use -root option too.
1 + 1 = 3 with very large values of 1