🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5315

Help Compiling TC 2.0

#5315
From: Dan Schikore
Date: Mon, 18 Mar 1991 03:53
17 lines
1214 bytes
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
Technical Details
Message-ID: <8098@mentor.cc.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwvax!zazen!uakari.primate.wisc.edu!caen!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!schikore

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwvax!zazen!uakari.primate.wisc.edu!caen!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!schikore
From: schikore@mentor.cc.purdue.edu (Dan Schikore)
Newsgroups: comp.os.msdos.programmer
Subject: Help Compiling TC 2.0
Keywords: memory models
Message-ID: <8098@mentor.cc.purdue.edu>
Date: 18 Mar 91 03:53:44 GMT
Distribution: usa
Organization: Purdue University
Lines: 17