And I am calling it by/* ccalls.c */
#include <ncurses.h>
char inchar()
{
int ch;
initscr();
cbreak();
ch =getch();
endwin();
return (ch);
}
Debugging the code with gdb, I can follow it for hundreds of instructions into the lcurses library code but I loose track of what the code is doing before it fails with the message:- dl-lookup.c: No such file or derectory.key_c:
bl inchar @ Call c
stmea DSTK!, {r0} @ Put on data stack
b NEXT
I can call it in c and it works correctly
It seems that "inchar" is called correctly and starts running but when called from assembler is unable to find the requisite files despite gcc not complaining about missing files./* ctest */
#include<stdio.h>
char inchar();
int main7()
{
char ch:
ch = inchar();
printf(" Char was %c "), ch );
return(0);
{
Regards Roger