How to use listener.d example?
rikki cattermole
rikki at cattermole.co.nz
Tue Sep 4 11:05:37 UTC 2018
On 04/09/2018 10:57 PM, Marcin wrote:
> On Friday, 31 August 2018 at 07:38:54 UTC, Marcin wrote:
>> https://github.com/dlang/dmd/blob/master/samples/listener.d
>
>
> Im using Notepad++ as my IDE cuz i dont have administrator privileges on PC
Coedit is a good option since it is a simple unzip and ready to go.
Although less than ugh "normal" but still a good option when nothing
else decent exists.
https://github.com/BBasile/Coedit
> To import modules i use -I option
> cmd /k cd C:\D\dtwo\windows\bin\ & C:\D\dtwo\windows\bin\dmd.exe
> -I="$(CURRENT_DIRECTORY)" "$(FULL_CURRENT_PATH)" &
> C:\D\dtwo\windows\bin\$(NAME_PART).exe
-I is only for directories and the modules contained must be already
compiled and ready to be linked in.
> C:\Users\wjelki\Desktop\d\aplikacja.d(2): Error: module `server` is in
> file 'vibe\http\server.d' which cannot be read
> import path[0] = C:\Users\wjelki\Desktop\d\vibe.d\core
> import path[1] = .\..\..\src\phobos
> import path[2] = .\..\..\src\druntime\import
>
> How to import other modules than Phobos?
For vibe.d use the build manager dub and yes dmd comes with it already.
But the general way to do it straight is:
dmd -of mylib.lib -lib a/filea.d a/fileb.d
dmd -of myprog.exe mylib.lib b/filec.d -I a
Of course that is off the top of my head and I only ever use dub so...
take that with a grain of salt.
More information about the Digitalmars-d-learn
mailing list