Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run examples ? #92

Open
biocyberman opened this issue Dec 17, 2016 · 1 comment
Open

run examples ? #92

biocyberman opened this issue Dec 17, 2016 · 1 comment

Comments

@biocyberman
Copy link

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?

@repeatedly
Copy link
Member

See compiler option -I.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants