Re: D1 D2 alpha's for Win64

2012-12-11 Thread Jesse Phillips
On Tuesday, 11 December 2012 at 15:28:08 UTC, Moritz Maxeiner wrote: One more thing: It's been asked before in this thread, but I haven't seen a reply by Walter yet: Is it viable to add the option of using the VC linker for 32bit, e.g. as something like -linkvc. And I don't mean to remove

Re: D1 D2 alpha's for Win64

2012-10-21 Thread Jesse Phillips
On Saturday, 20 October 2012 at 16:56:19 UTC, Benjamin Thaut wrote: What about core.atomic.atomicOp!+= ? Kind Regards Benjamin Thaut That is probably a perfect substitute. And now the program is linking... it crashes when run, but it gets through the initial steps. (I expect I have failed

Re: D1 D2 alpha's for Win64

2012-10-20 Thread Walter Bright
On 10/19/2012 9:30 PM, Jesse Phillips wrote: test.obj : error LNK2019: unresolved external symbol InterlockedIncrement referenced in function _Dmain InterlockedIncrement is a VC compiler intrinsic, which is why it isn't in the library.

Re: D1 D2 alpha's for Win64

2012-10-20 Thread Sönke Ludwig
Am 10/14/2012 9:54 PM, schrieb Walter Bright: http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip Be the first kid on your block to build a dmd Win64 app! I get a problem, that is not really 64-bit related, but currently keeps me from trying anything more serious:

Re: D1 D2 alpha's for Win64

2012-10-20 Thread Sönke Ludwig
Am 10/20/2012 9:20 AM, schrieb Sönke Ludwig: Am 10/14/2012 9:54 PM, schrieb Walter Bright: http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip Be the first kid on your block to build a dmd Win64 app! I get a problem, that is not really 64-bit related, but

Re: D1 D2 alpha's for Win64

2012-10-20 Thread Walter Bright
On 10/19/2012 11:19 PM, Walter Bright wrote: On 10/19/2012 9:30 PM, Jesse Phillips wrote: test.obj : error LNK2019: unresolved external symbol InterlockedIncrement referenced in function _Dmain InterlockedIncrement is a VC compiler intrinsic, which is why it isn't in the library. Probably

Re: D1 D2 alpha's for Win64

2012-10-20 Thread Jesse Phillips
On Saturday, 20 October 2012 at 06:20:15 UTC, Walter Bright wrote: On 10/19/2012 9:30 PM, Jesse Phillips wrote: test.obj : error LNK2019: unresolved external symbol InterlockedIncrement referenced in function _Dmain InterlockedIncrement is a VC compiler intrinsic, which is why it isn't in

Re: D1 D2 alpha's for Win64

2012-10-20 Thread Benjamin Thaut
Am 20.10.2012 18:40, schrieb Jesse Phillips: On Saturday, 20 October 2012 at 16:26:43 UTC, Jesse Phillips wrote: Thanks for the reply. So I didn't get through all the remarks of that page: This function is implemented using a compiler intrinsic where possible. For more information, see the

Re: D1 D2 alpha's for Win64

2012-10-19 Thread Walter Bright
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.

Re: D1 D2 alpha's for Win64

2012-10-19 Thread Jesse Phillips
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.

Re: D1 D2 alpha's for Win64

2012-10-18 Thread Jacob Carlborg
On 2012-10-17 23:32, Damian wrote: Although that would be great, it also means everybody who wants to use D2 and have COFF support would also have to get VS. That seems like the wrong direction to go in. Be much nicer if D2 can have this out of the box. No point in removing the already

Re: D1 D2 alpha's for Win64

2012-10-18 Thread Gor Gyolchanyan
On Thursday, 18 October 2012 at 06:18:02 UTC, Jacob Carlborg wrote: On 2012-10-17 23:32, Damian wrote: Although that would be great, it also means everybody who wants to use D2 and have COFF support would also have to get VS. That seems like the wrong direction to go in. Be much nicer if D2

Re: D1 D2 alpha's for Win64

2012-10-17 Thread Gor Gyolchanyan
On Tuesday, 16 October 2012 at 16:44:59 UTC, Walter Bright wrote: On 10/16/2012 8:58 AM, Gor Gyolchanyan wrote: It worked fine for me at first! This is awesome! Great! But is it possible to use VC linker for 32-bit architectures? No. Is there a reason why it isn't possible? If you

Re: D1 D2 alpha's for Win64

2012-10-17 Thread Damian
On Wednesday, 17 October 2012 at 10:46:37 UTC, Gor Gyolchanyan wrote: On Tuesday, 16 October 2012 at 16:44:59 UTC, Walter Bright wrote: On 10/16/2012 8:58 AM, Gor Gyolchanyan wrote: It worked fine for me at first! This is awesome! Great! But is it possible to use VC linker for 32-bit

Re: D1 D2 alpha's for Win64

2012-10-17 Thread Walter Bright
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.

Re: D1 D2 alpha's for Win64

2012-10-16 Thread Gor Gyolchanyan
On Monday, 15 October 2012 at 21:40:01 UTC, Walter Bright wrote: On 10/15/2012 2:21 PM, Michael wrote: On Monday, 15 October 2012 at 20:39:14 UTC, Walter Bright wrote: On 10/15/2012 1:27 PM, Michael wrote: LINK : fatal error LNK1104: cannot open file 'phobos64.lib' --- errorlevel 1104

Re: D1 D2 alpha's for Win64

2012-10-16 Thread Walter Bright
On 10/16/2012 8:58 AM, Gor Gyolchanyan wrote: It worked fine for me at first! This is awesome! Great! But is it possible to use VC linker for 32-bit architectures? No.

Re: D1 D2 alpha's for Win64

2012-10-16 Thread Michael
On Tuesday, 16 October 2012 at 16:44:59 UTC, Walter Bright wrote: On 10/16/2012 8:58 AM, Gor Gyolchanyan wrote: It worked fine for me at first! This is awesome! Great! I tried a different lib paths, got same unresolved symbols. I have VC 10 VC 11 Express editions. amd64 folder only in VC

Re: D1 D2 alpha's for Win64

2012-10-16 Thread Walter Bright
On 10/16/2012 11:36 AM, Michael wrote: On Tuesday, 16 October 2012 at 16:44:59 UTC, Walter Bright wrote: On 10/16/2012 8:58 AM, Gor Gyolchanyan wrote: It worked fine for me at first! This is awesome! Great! I tried a different lib paths, got same unresolved symbols. I have VC 10 VC 11

Re: D1 D2 alpha's for Win64

2012-10-15 Thread Rainer Schuetze
On 10/15/2012 3:44 AM, Walter Bright wrote: On 10/14/2012 6:08 PM, Andrej Mitrovic wrote: Ok so we're only supposed to compile with -c when using -m64? I don't suppose DMD could automatically invoke the VC linker? It does automatically invoke the VC linker. You'll need to set the

Re: D1 D2 alpha's for Win64

2012-10-15 Thread Michael
On Sunday, 14 October 2012 at 19:55:20 UTC, Walter Bright wrote: http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip Be the first kid on your block to build a dmd Win64 app! On Win 2008 R2: 1. Path for VS 11: C:\Program Files (x86)\Microsoft Visual Studio

Re: D1 D2 alpha's for Win64

2012-10-15 Thread Michael
But in 32 mode with same sc.ini works fine.

Re: D1 D2 alpha's for Win64

2012-10-15 Thread Walter Bright
On 10/15/2012 1:27 PM, Michael wrote: LINK : fatal error LNK1104: cannot open file 'phobos64.lib' --- errorlevel 1104 Fixed.

Re: D1 D2 alpha's for Win64

2012-10-15 Thread Michael
On Monday, 15 October 2012 at 20:39:14 UTC, Walter Bright wrote: On 10/15/2012 1:27 PM, Michael wrote: LINK : fatal error LNK1104: cannot open file 'phobos64.lib' --- errorlevel 1104 Fixed. dmd -m64 t64.d -- import std.stdio; void main() { writeln(Win 64!); } --

Re: D1 D2 alpha's for Win64

2012-10-15 Thread Walter Bright
On 10/15/2012 2:21 PM, Michael wrote: On Monday, 15 October 2012 at 20:39:14 UTC, Walter Bright wrote: On 10/15/2012 1:27 PM, Michael wrote: LINK : fatal error LNK1104: cannot open file 'phobos64.lib' --- errorlevel 1104 Fixed. dmd -m64 t64.d -- import std.stdio; void main() {

Re: D1 D2 alpha's for Win64

2012-10-14 Thread bearophile
Walter Bright: http://ftp.digitalmars.com/dmd2beta.zip Be the first kid on your block to build a dmd Win64 app! The changelog section is not in good state, it misses parts and newlines. Bye, bearophile

Re: D1 D2 alpha's for Win64

2012-10-14 Thread Andrej Mitrovic
On 10/14/12, Walter Bright newshou...@digitalmars.com wrote: Be the first kid on your block to build a dmd Win64 app! But this is without Phobos support? D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(317): Error: module string is in file 'std\c\string.d' which cannot be read I can't

Re: D1 D2 alpha's for Win64

2012-10-14 Thread Walter Bright
On 10/14/2012 3:27 PM, Andrej Mitrovic wrote: D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(317): Error: module string is in file 'std\c\string.d' which cannot be read Fixed.

Re: D1 D2 alpha's for Win64

2012-10-14 Thread Andrej Mitrovic
On 10/15/12, Walter Bright newshou...@digitalmars.com wrote: On 10/14/2012 3:27 PM, Andrej Mitrovic wrote: D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(317): Error: module string is in file 'std\c\string.d' which cannot be read Fixed. Ok so we're only supposed to compile with -c

Re: D1 D2 alpha's for Win64

2012-10-14 Thread Walter Bright
On 10/14/2012 6:08 PM, Andrej Mitrovic wrote: Ok so we're only supposed to compile with -c when using -m64? I don't suppose DMD could automatically invoke the VC linker? It does automatically invoke the VC linker. You'll need to set the VCINSTALLDIR environment variable. I set it with sc.ini