www.digitalmars.com         C & C++   DMDScript  

c++ - building a library with DMC

reply "John Smith" <jsmith email.com> writes:
I have the free command line version of Digital Mars C. I am assuming that
the executable lib.exe is a library building tool. Unfortunately, I  can't
find any documentation for it.

Let's say I want to build a library mylib.lib and add the object file
foo.obj to it. Can someone show me the correct command line syntax for
building the library and also the command line syntax for linking  the
library when the executable is compiled?
Jan 19 2004
parent Scott Michel <scottm cs.ucla.edu> writes:
John Smith wrote:

 I have the free command line version of Digital Mars C. I am assuming that
 the executable lib.exe is a library building tool. Unfortunately, I  can't
 find any documentation for it.
 
 Let's say I want to build a library mylib.lib and add the object file
 foo.obj to it. Can someone show me the correct command line syntax for
 building the library and also the command line syntax for linking  the
 library when the executable is compiled?
http://www.digitalmars.com/ctg/lib.html has the documentation.
Jan 19 2004