digitalmars.D - How to make .lib file using dmd?
- clisper (1/1) Nov 09 2006 I want to make some d files to .lib file, what should i do?
- Bill Baxter (3/4) Nov 09 2006 Just a guess, but maybe use the -c "do not link" flag?
- Tiberiu Gal (8/9) Nov 09 2006 I use build (bud):
- Bradley Smith (7/16) Nov 09 2006 This assumes that in project/all.d are imports of all the modules. To
- Walter Bright (3/4) Nov 09 2006 The librarian program turns .obj files into .lib files:
- David Medlock (8/9) Nov 10 2006 If anyone wants it I can send them DManager, a gui project manager I
I want to make some d files to .lib file, what should i do?
Nov 09 2006
clisper wrote:I want to make some d files to .lib file, what should i do?Just a guess, but maybe use the -c "do not link" flag? --bb
Nov 09 2006
On Thu, 09 Nov 2006 14:00:10 +0200, clisper <clisper 163.com> wrote:I want to make some d files to .lib file, what should i do?I use build (bud): build -lib project\all.d but you can use dmd: dmd -c file1 file2 lib -c mylib.lib file1.obj file2.obj -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Nov 09 2006
Tiberiu Gal wrote:On Thu, 09 Nov 2006 14:00:10 +0200, clisper <clisper 163.com> wrote:This assumes that in project/all.d are imports of all the modules. To make mylib.a like below, the command is: build -lib -Tmylib.a project/all.dI want to make some d files to .lib file, what should i do?I use build (bud): build -lib project\all.dbut you can use dmd: dmd -c file1 file2 lib -c mylib.lib file1.obj file2.objThe equivalent on Linux is: dmd -c file1.d file2.d ar cr mylib.lib file1.o file2.o
Nov 09 2006
clisper wrote:I want to make some d files to .lib file, what should i do?The librarian program turns .obj files into .lib files: http://www.digitalmars.com/ctg/lib.html
Nov 09 2006
clisper wrote:I want to make some d files to .lib file, what should i do?If anyone wants it I can send them DManager, a gui project manager I wrote a while back. Its on dsource, but is archived I think. With it you simply: 1. Create a project. 2. Add all D and OBJ files. 3. Right click project name, select Build LIB -DavidM
Nov 10 2006