April 20, 2014
I want to use the tecgraf iup gui library for a cross platform application - using dmd2.065.
I have simple .d program that links with iup on linux w/o a problem using -L-liup
after installing the iup so library for linux provided by tecgraf.
HOWEVER, cannot quite get there for Windows with same .d prog
Tecgraf supplies several .a libraries on Windows for mingw, gcc4, etc.
The link almost works without errors (after adding lots of Windows xxx32.lib
files to the link.  But I cannot get rid of:
   Undefined ___chkstk_ms
linker error message (and a couple others).  This does not seem to be part
of the iup libraries (I did a find on all files with grep).
So my question is:  which Windows gcc clone provides libraries most likely
to be compatible with dmd2.065 ??
(BTW am using wine for development to avoid buying a MS box for just one project -
dmd for windows occaisionally hiccups but until now, have been able to keep
trucking).
(BTW BTW - the windows program works - so why the linker errors ?)
Thanks
April 21, 2014
Conventional windows 32-bit libraries are incompatible with dmd. Either compile iup with dmc, link it as a dll or use gdc or ldc.