Bug 17860 – some code exaples from site doesn't build on Visual Studio 2010 (and probably at all)

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2017-09-26T20:21:21Z
Last change time
2017-12-02T20:09:57Z
Assigned to
No Owner
Creator
Max

Attachments

IDFilenameSummaryContent-TypeSize
1660ConsoleApp2.buildlog.htmlOutput of this trashtext/html2257

Comments

Comment #0 by maxim.k.elasnce — 2017-09-26T20:21:21Z
Created attachment 1660 Output of this trash I've tried some exaples like this void main() { import std.exception, std.stdio, std.process; auto result = ["whoami"].execute; enforce(result.status == 0); result.output.write; } And they doesn't work.
Comment #1 by maxim.k.elasnce — 2017-09-26T20:27:56Z
I found out that it is std.process problem, if I remove all the code but will leave import section, when std.process in it it triggers an error.
Comment #2 by greeenify — 2017-09-27T18:48:21Z
All examples (aka D unittests) are automatically tested with every PR on multiple CIs (even Windows), so chances are it's a problem on your side. What setup to you use? Which D compiler? What error messages do you see?
Comment #3 by maxim.k.elasnce — 2017-09-28T10:07:21Z
(In reply to greenify from comment #2) > All examples (aka D unittests) are automatically tested with every PR on > multiple CIs (even Windows), so chances are it's a problem on your side. > What setup to you use? Which D compiler? > What error messages do you see? I addet an attachment with output object.Error@(0): Access Violation ---------------- 0x005BEDEE 0x005D7FD6 0x005A38D0 0x005B3676 0x0053479E 0x005ACE2F 0x005AF442 0x00579BA6 0x005A77F4 0x77DA2FDE in NtdllDefWindowProc_A 0x77DA2703 in RtlReAllocateHeap 0x005293B9 0x005D7141 Building Win32\Debug DMD\ConsoleApp2.exe failed!
Comment #4 by maxim.k.elasnce — 2017-09-28T10:18:40Z
(In reply to greenify from comment #2) > All examples (aka D unittests) are automatically tested with every PR on > multiple CIs (even Windows), so chances are it's a problem on your side. > What setup to you use? Which D compiler? > What error messages do you see? dmd-2.076.0 and VS 2010, visual D 0.44.2, windows 7 sp 1
Comment #5 by maxim.k.elasnce — 2017-09-28T10:51:53Z
Strange I just compiled code from console, but in VS id does not. BUT. If I choose "release DMD" it compile well. Other 5 choices don't work
Comment #6 by maxim.k.elasnce — 2017-10-01T21:25:28Z
Is somone going to fix that?
Comment #7 by greensunny12 — 2017-12-02T20:09:57Z
> Is somone going to fix that? No, you need to fix your setup yourself. Please ask on the IRC or NG.Learn if you need more help in setting up your machine.