Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!marque!uunet!munnari!munginya.cs.mu.oz!jayen From: jayen@munginya.cs.mu.oz (Jayen Vaghani) Newsgroups: comp.unix.xenix Subject: Re: segment size exceeds 64K Message-ID: <2336@munnari.oz> Date: 2 Sep 88 00:15:23 GMT Sender: news@munnari.oz Reply-To: jayen@munginya.cs.mu.oz (Jayen Vaghani) Organization: University of Melbourne, Comp Sci Dept Lines: 16 The problem is that even though you specified the large model when compiling you did not specify the large model when linking. Unless the linker specifically told which model to use, it will default to the small model. So, where as cc -o test -Ml2 test.c one.c two.c will compile and link using large models everywhere, cc -c -Ml2 test.c one.c two.c cc -o test test.o one.o two.o will compile with large model but attempt to link with small model. Simply, put the -Ml flag in the link command line to fix. Jayen.