www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Setting up DMD on windows

reply welkam <wwwelkam gmail.com> writes:
Tried to use DMD compiler that I built from source by following 
these instructions https://wiki.dlang.org/Building_under_Windows

They are outdated but I managed to compile it but I get this 
error when I tried to compile some code.

dmdm -run Main.d
C:\D\dmd2\windows\32\..\..\src\druntime\import\core\sys\wind
ws\winbase.d(1828): Error:
object.Error (0): Access Violation
----------------
0x0064FED6
0x006502BE
0x006499CF
0x006488ED



dmdm is just alias dmdm=C:\D\dmd2\windows\32\dmd.exe $*

the compiler version is dmd-2.078.0

Could some one help fix this?
Feb 03
parent reply Rubn <where is.this> writes:
On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote:
 Tried to use DMD compiler that I built from source by following 
 these instructions https://wiki.dlang.org/Building_under_Windows

 They are outdated but I managed to compile it but I get this 
 error when I tried to compile some code.

 dmdm -run Main.d
 C:\D\dmd2\windows\32\..\..\src\druntime\import\core\sys\wind
ws\winbase.d(1828): Error:
 object.Error (0): Access Violation
 ----------------
 0x0064FED6
 0x006502BE
 0x006499CF
 0x006488ED



 dmdm is just alias dmdm=C:\D\dmd2\windows\32\dmd.exe $*

 the compiler version is dmd-2.078.0

 Could some one help fix this?
I think you have to build with an old version of MSVC, 2010 maybe? It's been a while since I built it I don't remember the exactly which version ended up working.
Feb 03
parent reply Seb <seb wilzba.ch> writes:
On Sunday, 4 February 2018 at 01:23:50 UTC, Rubn wrote:
 On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote:
 [...]
I think you have to build with an old version of MSVC, 2010 maybe? It's been a while since I built it I don't remember the exactly which version ended up working.
2013 and 2015 are tested on the CIs.
Feb 03
parent reply Rubn <where is.this> writes:
On Sunday, 4 February 2018 at 01:33:05 UTC, Seb wrote:
 On Sunday, 4 February 2018 at 01:23:50 UTC, Rubn wrote:
 On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote:
 [...]
I think you have to build with an old version of MSVC, 2010 maybe? It's been a while since I built it I don't remember the exactly which version ended up working.
2013 and 2015 are tested on the CIs.
Wasn't that just added? I don't think that CI was running for the version he is trying to compile.
Feb 04
parent Seb <seb wilzba.ch> writes:
On Sunday, 4 February 2018 at 17:11:21 UTC, Rubn wrote:
 On Sunday, 4 February 2018 at 01:33:05 UTC, Seb wrote:
 On Sunday, 4 February 2018 at 01:23:50 UTC, Rubn wrote:
 On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote:
 [...]
I think you have to build with an old version of MSVC, 2010 maybe? It's been a while since I built it I don't remember the exactly which version ended up working.
2013 and 2015 are tested on the CIs.
Wasn't that just added? I don't think that CI was running for the version he is trying to compile.
IIRC 2013 is the version auto-tester is using and in use for a couple of years. Only AppVeyor (VS 2015) was added recently.
Feb 04