However when I link my test program using the following: (I've pasted the relevant parts from my build shell script).
Code: Select all
...
OUTFILE='AnnoyMe.prog'
...
LIBLOADER=$LIB'/loader.ao' # basically my complex cr0
LIBBIN=$LIB'/lib/libperception.a '$LIB'/lib/libc.a'
LIBLINK=$LIB'/link.ld'
...
LD='i586-elf-ld'
...
$LD -T $LIBLINK -o $OUTFILE $LIBLOADER *.o $LIBBIN
...
Code: Select all
../Library/lib/libc.a(lib_a-makebuf.o): In function `__smakebuf':
/cygdrive/c/perception/Users/Superuser/Source/Library/i586-elf/newlib/libc/stdio
/../../../.././newlib/libc/stdio/makebuf.c:102: undefined reference to `isatty'
Here's an example function (my isatty from above) as a reference to what I'm doing:
Code: Select all
int isatty(int file)
{
return 1;
}
Maybe the error is due to my glue code being C++ instead of C?