[Insight-users] compile error using cygwin

Bill Lorensen bill.lorensen at gmail.com
Wed Feb 9 06:21:01 EST 2011


I would recommend mingw over cygwin. It is much smaller and less
troublesome to update that cygwin. It also seems faster to me.

On Tue, Feb 8, 2011 at 8:10 PM, Seth Gilchrist <seth at mech.ubc.ca> wrote:
> Hello all,
> 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'm
> having trouble compiling itk.  I get all the way to 97% complete and error
> out with the message:
>
> [ 96%] Built target ITKIO
> Scanning dependencies of target itkTestDriver
> [ 97%] Building CXX object
> Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.o
> Linking CXX executable ../../bin/itkTestDriver.exe
> ../../bin/libITKCommon.a(itkWin32OutputWindow.o):itkWin32OutputWindow.cxx:(.text
> +0x262): undefined reference to `_GetStockObject at 4'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/itkTestDriver.exe] Error 1
> make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2
> make: *** [all] Error 2
>
> 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'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?
>
> Thanks for your time,
> Seth
> +--------------------------+
> WinXP Pro, Version 2002, SP3 Running in Virtualbox 3.2.12:
> CYGWIN_NT-5.1
> cmake 2.8.2
> gcc 4.3.4
> GNU ld 2.20.51.20100410
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list