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

Problem with compiling. #1

Closed
PeterBorisenko opened this issue May 3, 2015 · 10 comments
Closed

Problem with compiling. #1

PeterBorisenko opened this issue May 3, 2015 · 10 comments
Assignees

Comments

@PeterBorisenko
Copy link

I've got a several errors:

        module core.sys.posix.sys.time import 'timeval' not found

if I change import core.sys.posix.sys.time : timeval; to
import std.socket : timeval; I see this:

         module consts is in file 'consts.d' which cannot be read
@rlonstein
Copy link
Contributor

What version of the D compiler? What platform (Windows, Linux) and release?

@rlonstein
Copy link
Contributor

Also for v2.0.67, #2

@PeterBorisenko
Copy link
Author

Platform is Windows 7 32bit. D compiler is dmd v2.066.1.

@rlonstein rlonstein self-assigned this May 4, 2015
@rlonstein
Copy link
Contributor

I'm afraid I don't have Win7. I work on Posix-like systems (OSX, Linux). I'll see if I can do anything with WinXP and VC2010-Express but it's not a platform I use.

@PeterBorisenko
Copy link
Author

Ok. I'll try to fix it somehow.

@rlonstein
Copy link
Contributor

You might try this diff: https://gist.github.com/rlonstein/bb24b8d6e668f39ec63c to fix the import. I don't have a way to test it, but it should bring in the correct symbols. The missing consts.d I think is something peculiar about your compilation, it works here in the examples/ and in a couple of in-house projects. Assuming you're using dub, show me your dub.json and the output from dub -v build -f or similar from your build.

@rlonstein
Copy link
Contributor

@disgust any follow up to my gist and collecting output?

@PeterBorisenko
Copy link
Author

I don't have winsock2.d module in /core/sys/windows
dmd version is 2.066.1
dub.json is
{
"name": "rom-prog",
"description": "A minimal D application.",
"copyright": "Copyright © 2015, Peter Borisenko",
"authors": ["Peter Borisenko"],
"dependencies": {
"dlangui": "master",
"libusb-d": "
>0.1.0"
}
}

@rlonstein
Copy link
Contributor

Okay, I see it was committed Dec 2014, https://github.com/D-Programming-Language/druntime/commits/master/src/core/sys/windows/winsock2.d, and isn't in a tagged release before 2.067. I'm afraid you're stuck if you can't update to the current runtime. You might copy the necessary definition (it's a few lines) into your own source tree as a work around.

@rlonstein rlonstein mentioned this issue Mar 7, 2016
@rlonstein
Copy link
Contributor

Closed for lack of response.

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