Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

bearophile bearophileHUGS at lycos.com
Mon Dec 5 18:47:38 PST 2011


Daniel Green:

>     * -v1(default) compiles for D1.

I suggest to make D2 the default.

I have installed the latest TDM GCC in
C:\MinGW

Then I have unpacked the 7-zip over the directories of the MinGW install. 150+ files got overwritten, some executables too.

I have made sure C:\MinGW\bin and C:\MinGW\lib are in the path. C:\MinGW\lib contains libgphobos.a too.

If now I compile a little program using:
gdc -v2 test.d

It probably doesn't find Phobos:

c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libgphobos2.a(bitmanip.o): In function `D3std8bitmanip8BitArray7opIndexMxFkZb':
C:\crossdev\gdc\v2\build\mingw32\libphobos/../../../gcc-4.6.1/libphobos/std/bitmanip.d:410: undefined reference to `__sync_fetch_and_add_4'
...
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libgphobos2.a(bitmanip.o):C:\crossdev\gdc\v2\build\mingw32\libphobos/../../../gcc-4.6.1/libphobos/std/bitmanip.d:410: more undefined references to `__sync_fetch_and_add_4' follow

I don't even know what C:\crossdev\ is, I don't have that directory.

Do you know how to improve this situation?

Bye and thank you,
bearophile


More information about the Digitalmars-d-announce mailing list