msgpack-d icon indicating copy to clipboard operation
msgpack-d copied to clipboard

run examples ?

Open biocyberman opened this issue 9 years ago • 1 comments

I am new to D and mgspack. I want to run the examples, like this:

% dmd -run ./example/register.d                                                         
./example/register.d(1): Error: module msgpack is in file 'msgpack.d' which cannot be read
import path[0] = /usr/include/dmd/phobos
import path[1] = /usr/include/dmd/druntime/import

Apparently the examples do not know where to look for msgpack. I don't want to actually install msgpack before I run the examples. How do I update the examples to source mgspack dependency from the examples parent directory, preferably with dub.json definitions?

biocyberman avatar Dec 17 '16 11:12 biocyberman

See compiler option -I.

https://dlang.org/dmd-osx.html#switches

repeatedly avatar Dec 17 '16 13:12 repeatedly