[comp.os.msdos.programmer] Help Compiling TC 2.0

schikore@mentor.cc.purdue.edu (Dan Schikore) (03/18/91)

Why is it that if I want to use graphics in my program I cannot use the
command line tcc, and must compile using tc?  Or is there some way that
I can use tcc and then link in the graphics library?  (I haven't been
able to do this with tlink yet).

I have one program that I compile using tcc -mc to use compact model, and
it seems that automatically all my mallocs are far.  On the other hand,
if I use tc and set the model to compact, it seems that my mallocs are
still near and I run out of memory.

What I would like to do is compile in the compact model, link in the graphics
library, and leave all my pointer declarations the same and use malloc, etc.

Can anyone straighten me out?  Thanks for any help.

-Dan Schikore
schikore@mentor.cc.purdue.edu