www.digitalmars.com Home | Search | CTG | RTL | IDDE | STL
Last update Sat Apr 8 23:54:05 2006
Compiler & Tools Guide

Compiling
Compiling Code
C Implementation
C++ Implementation
Language Extensions
Mixing Languages
Assembly Language
Inline Assembler
Optimizing Code
Numerics Programming
Regular Expressions
Acrtused
Pragmas
Precompiled Headers
Predefined Macros
Warning Messages
Error Messages
Runtime Messages


Linking
Optlink
Switches
Module Definition Files
Operation and Design
Error Messages


Win32 Programming
Win32 Programming


DOS and Win16
Programming

Memory Models
16 Bit Pointer Types
and Type Modifiers

Handle Pointers
DOS
DOS 32 (DOSX)
Win16
Win16 DLLs
Win16 Prolog/Epilog


C/C++ Extensions
Contract Programming
__debug statement
__debug declaration
Dynamic Profiling
Embedding C in HTML


Tools
BCC
CHMOD
CL
COFF2OMF
COFFIMPLIB
DMC
DIFF
DIFFDIR
DUMP
DUMPOBJ
DUMPEXE
EXE2BIN
FLPYIMG
GREP
HC
IMPLIB
LIB
LIBUNRES
MAKE
MAKEDEP
ME
OBJ2ASM
PATCHOBJ
RC
RCC
SC
SHELL
SMAKE
TOUCH
UNMANGLE
WHEREIS


Porting to DMC++
Switching to DMC++
from Microsoft
from Borland
Porting Guide


COFFIMPLIB

Convert Import Libraries in COFF Format to OMF Format

Digital Mars tools all work with the Intel 32 bit OMF object and library file format. Microsoft's 32 bit tools work with Microsoft's own variant of the COFF format. Microsoft often updates import libraries that provide access to system DLLs. These import libraries are in COFF format, but they need to be in OMF format to work with the Digital Mars linker. The coffimplib tool will convert them to OMF format.

coffimplib inlib[.lib] [outfile[.def|.lib]] [-f] [-(i|e|l)] [-v]
inlib Import library in COFF format
outfile Output file, either module definition file (.def) or OMF import library (.lib)
-e Generate export list in module definition file.
-i Generate import list in module definition file.
-l Generate import library in OMF format (default).
-f Write output file even if it overwrites inlib.
-v Pretty print contents of import library inlib.

For example, to convert user32.lib from COFF to OMF:

coffimplib user32.lib -f