Simple clarification with "Building Libraries" online documentation
WhatMeWorry
kheaser at gmail.com
Wed Dec 16 22:51:55 UTC 2020
Looking at;
https://dlang.org/dmd-windows.html#library
Compile modules separately and then run the librarian on them:
dmd -c foo.d
dmd -c bar.d
phobos.lib -c -p32 foo.lib foo.obj bar.obj abc.obj def.lib
The last line puzzles me. I presume phobos.lib is the "librarian"
referred to in the first line, but where is it located?
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community>phobos.lib
'phobos.lib' is not recognized as an internal or external command,
operable program or batch file.
I can find dmd, no problem:
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community>where dmd
C:\D\dmd2\windows\bin\dmd.exe
I see the lib.exe which I thought was the "librarian", but no
phobos.lib?
dir C:\D\dmd2\windows\bin
Volume in drive C is Windows
Volume Serial Number is B4B2-5727
Directory of C:\D\dmd2\windows\bin
04/04/2019 11:43 AM <DIR> .
04/04/2019 11:43 AM <DIR> ..
03/01/2019 10:56 PM 674,332 ddemangle.exe
03/01/2019 10:28 PM 85,776 dm.dll
03/01/2019 10:50 PM 3,805,724 dmd.exe
03/01/2019 10:59 PM 10,507,856 dub.exe
03/01/2019 10:57 PM 1,139,228 dustmite.exe
03/01/2019 10:28 PM 150,288 eecxxx86.dll
03/01/2019 10:28 PM 80,656 emx86.dll
03/01/2019 10:28 PM 72,776 lib.exe
03/01/2019 10:28 PM 523,278 libcurl.dll
03/01/2019 10:28 PM 223,260 link.exe
03/01/2019 10:28 PM 14,048,768 lld-link.exe
03/01/2019 10:28 PM 56,904 make.exe
03/01/2019 10:28 PM 275,216 mspdb41.dll
03/01/2019 10:28 PM 223,260 optlink.exe
03/01/2019 10:56 PM 1,015,324 rdmd.exe
03/01/2019 10:26 PM 963 README.TXT
03/01/2019 10:28 PM 39,976 replace.exe
09/29/2020 01:51 PM 813 sc.ini
03/01/2019 10:28 PM 57,616 shcv.dll
03/01/2019 10:28 PM 67,144 shell.exe
03/01/2019 10:28 PM 8,976 tlloc.dll
03/01/2019 10:28 PM 567,096 windbg.exe
03/01/2019 10:28 PM 215,274 windbg.hlp
23 File(s) 33,840,504 bytes
2 Dir(s) 386,924,527,616 bytes free
More information about the Digitalmars-d-learn
mailing list