On 12/19/2011 12:07 PM, dsimcha wrote:
...And with D1, everything works again in 32-bit mode but in 64-bit mode:
gdc -o hello.exe hello.d -m64
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.6.1/../../../../lib/libgphobos.a(
win32.o):(.text+0xc3): undefined reference to `_data_start__'
c:/ming
Yeah, I just added the -m64 to the command line for explicitness.
I figured out that 64 is the default.
On Monday, 19 December 2011 at 16:42:16 UTC, Andrej Mitrovic
wrote:
On 12/19/11, Andrej Mitrovic wrote:
I think it compiles in 64bit mode by default. This assert
passes without
-m64:
stat
...And with D1, everything works again in 32-bit mode but in
64-bit mode:
gdc -o hello.exe hello.d -m64
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.6.1/../../../../lib/libgphobos.a(
win32.o):(.text+0xc3): undefined reference to `_data_start__'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.
On 12/19/11, Andrej Mitrovic wrote:
> I think it compiles in 64bit mode by default. This assert passes without
> -m64:
> static assert(size_t.sizeof == 8);
Woops, sorry I assumed you meant it doesn't, but you didn't say that. My bad. :)
I think it compiles in 64bit mode by default. This assert passes without -m64:
static assert(size_t.sizeof == 8);
The crash seems related to stdio. It doesn't happen with -m32.
Seems to work in 32-bit mode, but crashes in 64-bit mode.
hello.d:
import std.stdio;
void main() {
writeln("Hello, world.");
}
gdc -o hello.exe hello.d -m64 -v2
hello.exe
(crash)
Running Windows 7, TDM-GCC 64 installed with the bundle installer.
On Monday, 19 December 2011 at 03:27: