Simple way to play sounds using D

Adam D. Ruppe destructionator at gmail.com
Tue Feb 5 17:14:05 UTC 2019


On Tuesday, 5 February 2019 at 17:09:10 UTC, Murilo wrote:
> When I compile the code above the compiler says Error: linker 
> exited with status 1
> What should I do?

It might have to be "shoot.wav"w, notice the w on the end.

But I am guessing the main problem is not linking in the winmm 
lib and dll. It will probably work to add

pragma(lib, "winmm");

to your file right after the import.


More information about the Digitalmars-d-learn mailing list