Xref: utzoo comp.lang.c:17044 comp.sys.ibm.pc:26293 Path: utzoo!attcan!uunet!lll-winken!ames!haven!mimsy!velte From: velte@mimsy.UUCP (Jack Velte) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: linking C object modules Keywords: linking fixup Message-ID: <16442@mimsy.UUCP> Date: 19 Mar 89 08:17:07 GMT Distribution: na Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 17 i'm having trouble linking an old libarary with new C code. The libarary is several years old, and does not have modern segment names. (it's microsoft C v. 2 and/or lattice C v. 3.) i've written filters that add leading underscores and lowers the case of the names of the external definitions and the routine names (lnames) in the object file. when I compile and link the C code in the large memory model, the object modules extracted from the libarary link with my code. however, it is apparent from following the code with a debugger that the library modules were compiled in the small memory module. (library function returns don't pop the text segment off the stack and the program goes bye-bye.) when i try to compile a program in the small memory model, i get the famous 'fix-up' errors from the linker when i try to link with the library modules. thanks for any advice. -- Jack Velte @ University of MD domain: velte@mimsy.umd.edu path: seismo!mimsy!velte