In DOS, what memory model are you using?

You probably need to use a for most memory models (whatever compiler extension that may be), or set the compiler options to generate (pick the right flavor) LARGE or HUGE code.