[Insight-developers] GDCM2 and mingw

Bill Lorensen bill.lorensen at gmail.com
Sun Aug 29 08:39:48 EDT 2010


Now I see the problem. for some reason, HAVE_WINSOCK_H was not
defined. I cleared my cache and the next cmake run found it.

Sorry for the noise,

Bill

On Sun, Aug 29, 2010 at 7:33 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Mathieu,
>
> Does gdcm2 build under mingw? I am getting compile errors in gdcmSystem.cxx.
>
> For example, in the function ::GetHostName(), it uses the WIN32 code
> rather than the unix code. If I change the
> #if _WIN32
> to
> #if defined(_WIN32) && !defined(__MINGW__32)
>
> that function compiles OK.
>
> However, there is still a problem in ::GetCUrrrentProcessFileName()
> Here, the above fix does not work because mingw does not have readlink.
>
> Bill
>
> Bill
>


More information about the Insight-developers mailing list