GDC Compile Error
%u
wfunction at hotmail.com
Sun Apr 17 20:09:07 PDT 2011
I'm not sure if this is the best place to put this question, but since I'm
guessing people here have managed to get GDC to compile D2, I thought I'd ask:
So I just downloaded GDC from
https://bitbucket.org/goshawk/gdc/downloads/gcc-4.5.2-tdm-1-gdc-r546-20110417.zip
and also TDM's GCC from http://tdm-gcc.tdragon.net/download and attempted
to compile a D file with it, and I ran into errors.
When I tried compiling a D file (without -static), I got these errors:
C:\[...]\ccIiRY15.o:Temp.d:(.data+0xa0): undefined reference to
`_D3std1c6wcharh12__ModuleInfoZ'
c:/mingw32/bin/../lib/gcc/mingw32/4.5.2/../../../libgphobos2.a(dll_helper.o):
In function
`D4core10dll_helper18dll_process_attachFT4core3sys7windows7windows6HANDLEbZb':
C:\msys\1.0\home\venix\tdm\gdc-d2\dev\build\gcc-tdm32\mingw32\libphobos/../../../../src/gcc-4.5.2/libphobos/core/dll_helper.d:359: undefined reference to `_tls_callbacks_a'
C:\msys\1.0\home\venix\tdm\gdc-d2\dev\build\gcc-tdm32\mingw32\libphobos/../../../../src/gcc-4.5.2/libphobos/core/dll_helper.d:359: undefined reference to `_tlsend'
C:\msys\1.0\home\venix\tdm\gdc-d2\dev\build\gcc-tdm32\mingw32\libphobos/../../../../src/gcc-4.5.2/libphobos/core/dll_helper.d:359: undefined reference to `_tlsstart'
Does anyone have any ideas how to fix it?
The command line I ran was:
gdc -v2 -o "Temp.exe" "Temp.d"
Thank you!
More information about the Digitalmars-d
mailing list