brand@janus.Berkeley.EDU (Graham Brand) (10/23/90)
Dear netters, I have been trying without success to compile a fairly large program. The individual routines have compiled successfully but the linking process returns the following error messages. Any help would be appreciated. Each module is compiled as in the following two examples: tcc -1 -K -f -c -y -v functlst.c tcc -1 -K -f -c -y -v filetop.c The routines are linked using a response file, since the number of object files is large, the contents of which are: d:\tc\lib\C0h /c /v + functlst filetop fifo block sequencr state + add constant convolve data_gen delay fork noise + prntfile quantize q_voice5, blosim.exe,, d:\tc\lib\emu d:\tc\lib\mathh d:\tc\lib\Ch The error output is as below: Turbo Link Version 2.0 Copyright (c) 1987, 1988 Borland International Undefined symbol '_main' in module C0H Fixup overflow in module FUNCTLST.C at _TEXT:00EB, target = _strcmp Fixup overflow in module FUNCTLST.C at _TEXT:00D6, target = _strcmp Undefined symbol '_prnt_fil' in module FUNCTLST.C Fixup overflow in module FUNCTLST.C at _TEXT:00C1, target = _strcmp Fixup overflow in module FUNCTLST.C at _TEXT:00AC, target = _strcmp Undefined symbol '_add' in module FUNCTLST.C Fixup overflow in module FUNCTLST.C at _TEXT:000D, target = _strcmp Fixup overflow in module FILETOP.C at _TEXT:03C9, target = _sscanf
gordon@osiris.cso.uiuc.edu (John Gordon) (10/24/90)
The reason you're getting all those 'fixup overflow' errors is because you are compiling in the small model, but linking in the huge model libraries. (Turbo C defaults to the small model.) Try adding the '-mh' flag to the tcc call. >Undefined symbol '_main' in module C0H >Undefined symbol '_prnt_fil' in module FUNCTLST.C >Undefined symbol '_add' in module FUNCTLST.C You are calling these functions, but they are not defined anywhere. (i.e. they don't exist. Create them.) --- John Gordon Internet: gordon@osiris.cso.uiuc.edu #include <disclaimer.h> gordon@cerl.cecer.army.mil #include <clever_saying.h> GEnie: j.gordon14