segment size exceeds 64K

Jayen Vaghani jayen at munginya.cs.mu.oz
Fri Sep 2 10:15:23 AEST 1988


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.



More information about the Comp.unix.xenix mailing list