velte@mimsy.UUCP (Jack Velte) (03/19/89)
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