D1 & D2 alpha's for Win64

Jesse Phillips jessekphillips+D at gmail.com
Fri Oct 19 21:30:49 PDT 2012


On Friday, 19 October 2012 at 07:12:15 UTC, Walter Bright wrote:
> On 10/17/2012 4:50 PM, Walter Bright wrote:
>> On 10/14/2012 12:54 PM, Walter Bright wrote:
>>> http://ftp.digitalmars.com/dmd1beta.zip
>>> http://ftp.digitalmars.com/dmd2beta.zip
>>
>> Updated so now stack walking works in the VS debugger.
>
>
> New update implementing most of the std.math math functions.

To document my experience/setup

I only have the Windows Vista SDK installed.

sc.ini file changes:
VCINSTALLDIR=C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\
WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v6.0\

In the VSINSTALLDIR I had to copy bin\x64 and lib\x64 as amd64

This allowed for compile/link/run of a hello world. So my next 
thought was to see if Juno would work. I'm still trying to figure 
out how to get this example to link:

     import std.stdio;

     pragma(lib, "kernel32.lib");

     extern(Windows)
     int InterlockedDecrement(ref int Addend);

     void main() {
         int i;
         auto a = InterlockedDecrement(i);
     }

test.obj : error LNK2019: unresolved external symbol 
InterlockedIncrement referenced in function _Dmain

It could link with say int GetLastError(ref int) which is also a 
kernel32 function.

Awesome work!


More information about the Digitalmars-d-announce mailing list