Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI657.ASC

Output of file : TI657.ASC contained in archive : C-ALL.ZIP

PRODUCT : Borland C NUMBER : 657
DATE : September 11, 1991 PAGE : 1/1

TITLE : Linking a Windows Application from the Command Line

The syntax for TLINK is:

TLINK objfiles,exefile,mapfile,libfiles,deffile

You must always use the /Tw option to create a Windows EXE
or DLL. Use /Twe or /Twd to specifically create a Windows
EXE or DLL, respectively. The last two options override
specifications in the DEF file.

There is a specific startup module to use with Windows EXE's;
it is C0Wx.OBJ. For DLL's it is C0Dx.OBJ.

The required libraries are: IMPORT.LIB, CWINx.LIB, MATHx.LIB
and Cx.LIB. For DLL's the Windows library for the small and
compact models is CWINC.LIB and for medium and large it is
CWINL.LIB. The last three libraries, CWINx.LIB, MATHx.LIB and
Cx.LIB, must always be in this exact order.

NOTE: The libraries EMU.LIB and FP87.LIB will NEVER be used
in a Windows program. BC++ will take care of the floating-point
math automatically.

You will then have to run the Resource Compiler to fully
create a Windows EXE.

For more information, consult pages 115-130 in the User's Guide
on linking for Windows.

  3 Responses to “Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI657.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: