Undefined symbols? HELP!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
St8ic

Undefined symbols? HELP!

Post 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
Post Reply