Page 1 of 1

Undefined symbols? HELP!

Posted: Sat Jun 07, 2003 11:00 pm
by St8ic
Hi,
I'm writing a small modular floppy-booting OS in ASM and C. It is in very early stages of development and I'm currently trying to get it to run a .COM file and quit back to the kernal. I wrote some C code of a small program that uses the few functions that my OS can understand defined in che.h. I compiled the .c file into a .obj file with tcc without problems, but it doesn't want to compile from jim.obj to jim.com
with tlink. I get the following errors:

Error: Undefined symbol _PAUSE in module SYSTEM.C
Error: Undefined symbol _PRINTF in module SYSTEM.C
Error: Undefined symbol _STRCMP in module SYSTEM.C
Error: Undefined symbol _EXIT in module SYSTEM.C
Error: Undefined symbol _CLS in module SYSTEM.C
Error: Undefined symbol _REBOOT in module SYSTEM.C
Error: Undefined symbol _SCANF in module SYSTEM.C
Error: Undefined symbol _STRDEF in module SYSTEM.C
Error: Cannot generate COM file : invalid initial entry point address

The thing is that the functions pause, printf, strcmp, etc. should be defined by che.h. Also, I don't understand why it says invalid initail entry point address. how can I fix these?
Thanks in advance,
St8ic