readline / Gnu readline

Mike Parker aldacron at gmail.com
Thu Jan 30 08:13:16 UTC 2020


On Thursday, 30 January 2020 at 06:27:36 UTC, Michael wrote:
> On Thursday, 30 January 2020 at 06:15:54 UTC, Mike Parker wrote:
>
>> Is your source file named rl.d? And are you running dmd in the 
>> source file's directory?
>
> No, I did not. Changed it now and it works with dmd. Great!
> Tried the same with rdmd I'm getting a linker error.

Take a look at the rdmd documentation:

https://dlang.org/rdmd.html

There you'll see this:

rdmd [dmd and rdmd options] progfile[.d] [program arguments]

That means any arguments you pass on the command line after the 
source file name will be passed to your program. Compiler options 
need to go before the source file name.

rdmd -L-lreadline mysource.d


More information about the Digitalmars-d-learn mailing list