BCC und Tlink: Error: Undefined symbol _printf / segment-relocatable items present
-
Muß ein Programm (com-File mit Interruptersetzung) mit BCC und Tlink schreiben.
Der Linker meldet, wenn ich
tlink -t -c test.obj+C0t.OBJ,test.com
nach BCC aufrufe:
Error: Undefined symbol _printf in module test.c und
Fatal: Cannot generate COM file : segment-relocatable items presentBin ratlos. Wer hilft?
P.S.: Wenn ich mit tlink ohne C0t.OBJ linke erhalte ich sogar
Error: Undefined symbol _printf in module test.c
Error: Undefined symbol _getch in module test.c
Error: Undefined symbol _kbhit in module test.c
Error: Undefined symbol _setvect in module test.c
-
Note: use of 'interrupt' keyword may cause TLINK error
"Cannot generate COM file : segment-relocatable items present"http://my.execpc.com/~geezer/osd/intr/dos-16.c
forsch mal ein wenig, kommt einiges zum thema
ps: welches betriebssystem? hoffe dos, oder was anderes?
wie sieht der code abgespeckt aus?
-
user4711 schrieb:
Error: Undefined symbol _printf in module test.c
Du musst auch noch die Standardlibrary mitlinken, in der printf() ist.
-
Du musst auch noch die Standardlibrary mitlinken, in der printf() ist.
Also ich reduziere das BCC/Tlink - Problem einmal auf das Minimalstprogramm:
#include <stdio.h> main() { printf("Hello World"); }Mit @bcc -c- -k- -P- -mt test.c und
tlink -c test.obj+Emu.lib+Cs.lib+MATHS.LIB,test.com
erhalte ich zig mal die Meldung:Error: Segment _TEXT exceeds 64K
Error: Segment _TEXT exceeds 64K
Error: Segment _TEXT exceeds 64K
... usw.(sorry, daß ich mich so dumm anstelle aber bin kein Profi und schon gar nicht was bcc -c und tlink angeht.)