www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Anybody tried to get tango working with GDC under windows?

reply Marius Muja <mariusm cs.ubc.ca> writes:
Hi all,

I've been using gdc under linux for my project and now I'm trying to 
port it to windows. I'm using tango and there seems to be no tango 
distribution for windows that uses the gdc compiler 
(gdcwin.sourceforge.net). Are there any issues with using tango with gdc 
under windows?
I tried using dmd, but the performance of the generated code is about 
twice as slow. More than that, my project contains matlab bindings (a 
mex file) and the mex compiler didn't seem to like the object file 
generated by dmd (I guess I'd have to configure mex to use dmc instead 
of visual c++, which I don't know how easy it is to do).

Thanks,
Marius
May 29 2008
next sibling parent BCS <ao pathlink.com> writes:
Reply to Marius,

 Hi all,
 
 Are there any issues with using tango with gdc under windows?

IIRC there are some issues with gdc under windows but I've never even tried it on either platform.
 I tried using dmd, but the performance of the generated code is about
 twice as slow.

you might want to check to see if that is just windows vs. Linux (try dmd on linux and compare the results there) again, I haven't a clue with gdc so...
May 29 2008
prev sibling parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Marius Muja wrote:

 Hi all,
 
 I've been using gdc under linux for my project and now I'm trying to
 port it to windows. I'm using tango and there seems to be no tango
 distribution for windows that uses the gdc compiler
 (gdcwin.sourceforge.net). Are there any issues with using tango with gdc
 under windows?
 I tried using dmd, but the performance of the generated code is about
 twice as slow. More than that, my project contains matlab bindings (a
 mex file) and the mex compiler didn't seem to like the object file
 generated by dmd (I guess I'd have to configure mex to use dmc instead
 of visual c++, which I don't know how easy it is to do).
 
 Thanks,
 Marius

Hi Marius, I've been trying to find someone to test this for us, but there is no full distribution. Apparently it is rather difficult to get GDC on windows right due to the GCC versions available through Mingw. Cygwin is probably easier (maybe GDC is readily available there?) but may not be what you need, especially not if performance is your thing. When GDC is ready though, I believe Tango should mostly work. There is an old unapplied patch in our patches dir that may be of relevance, but apparently it mostly fixed GDC ... If you try it out, I'd love to hear your experiences and eventual patches / bug reports. Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
May 30 2008
parent Jacob Carlborg <doobnet gmail.com> writes:
Lars Ivar Igesund wrote:
 Marius Muja wrote:
 
 Hi all,

 I've been using gdc under linux for my project and now I'm trying to
 port it to windows. I'm using tango and there seems to be no tango
 distribution for windows that uses the gdc compiler
 (gdcwin.sourceforge.net). Are there any issues with using tango with gdc
 under windows?
 I tried using dmd, but the performance of the generated code is about
 twice as slow. More than that, my project contains matlab bindings (a
 mex file) and the mex compiler didn't seem to like the object file
 generated by dmd (I guess I'd have to configure mex to use dmc instead
 of visual c++, which I don't know how easy it is to do).

 Thanks,
 Marius

Hi Marius, I've been trying to find someone to test this for us, but there is no full distribution. Apparently it is rather difficult to get GDC on windows right due to the GCC versions available through Mingw. Cygwin is probably easier (maybe GDC is readily available there?) but may not be what you need, especially not if performance is your thing. When GDC is ready though, I believe Tango should mostly work. There is an old unapplied patch in our patches dir that may be of relevance, but apparently it mostly fixed GDC ... If you try it out, I'd love to hear your experiences and eventual patches / bug reports. Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango

What I can remember I had no problems with gdc on windows, just install mingw with gcc 3.4.5 (I think it was) and then install gdc. It works with Phobos but I never tried Tango. This was a while ago and it's also been a while since I used gdc on windows.
May 30 2008