Hello all,<br>I have been using ITK in Linux without trouble, however, my colleagues prefer to work in a Windows environment and have asked if I can port my code.  I am reluctant to do addition coding for this and have looked for a direct rout.  From reading it seems like cygwin is a good way to go, but I&#39;m having trouble compiling itk.  I get all the way to 97% complete and error out with the message:<br>

<br>[ 96%] Built target ITKIO<br>Scanning dependencies of target itkTestDriver<br>[ 97%] Building CXX object Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.o<br>Linking CXX executable ../../bin/itkTestDriver.exe<br>../../bin/libITKCommon.a(itkWin32OutputWindow.o):itkWin32OutputWindow.cxx:(.text<br>

+0x262): undefined reference to `_GetStockObject@4&#39;<br>collect2: ld returned 1 exit status<br>make[2]: *** [bin/itkTestDriver.exe] Error 1<br>make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2<br>make: *** [all] Error 2<br>

<br>I have looked for a solution to this and it seems that most people with this error are writing their own make files, rather than using cmake to generate them.  My best guess is that there is an additional package needed by cygwin, but I don&#39;t know which one.  Can anybody recommend one to check?  Or maybe somebody can recommend a better way to move my code from Linux to Win?<br>

<br>Thanks for your time,<br>Seth<br>+--------------------------+<br>WinXP Pro, Version 2002, SP3 Running in Virtualbox 3.2.12:<br>CYGWIN_NT-5.1<br>cmake 2.8.2<br>gcc 4.3.4<br>GNU ld 2.20.51.20100410