Hi Mark,
Before I started with uTasker I had same problem, in Eclipse, and it disappear when i add syscalls.c file, but now I don't know where I must add this and how?
//syscalla.c
#include <stdio.h>
#include <sys/stat.h>
char str[100];
char *cp = str;
void writechar(char ch);
int _close(int file) {
return -1;
}
int _exit(int x) {
while (1);
}
int _fstat(int file, struct stat *st) {
st->st_mode = S_IFCHR;
return 0;
}
int _lseek(int file, int ptr, int dir) {
return 0;
}
int isatty(int file) {
return 1;
}
int _read(int file, char *ptr, int len) {
return 0;
}
extern int __HEAP_START;
caddr_t _sbrk ( int incr )
{
static unsigned char *heap = NULL;
unsigned char *prev_heap;
if (heap == NULL) {
heap = (unsigned char *)&__HEAP_START;
}
prev_heap = heap;
heap += incr;
return (caddr_t) prev_heap;
}
int _getpid() {
return 1;
}
#include <errno.h>
#undef errno
extern int errno;
int _kill(int pid, int sig) {
errno=EINVAL;
return (-1);
}
void writechar(char ch) {
*cp++ = ch;
if (cp == (str + 100))
cp = str;
}
int _write(int file, char *ptr, int len) {
int todo;
for (todo = 0; todo < len; todo++) {
writechar(*ptr++);
}
return len;
}
regards,
robo