[Insight-developers] GDCM2 and mingw

Bill Lorensen bill.lorensen at gmail.com
Sun Aug 29 07:33:01 EDT 2010


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