[Insight-users] compile error using cygwin
Seth Gilchrist
seth at mech.ubc.ca
Tue Feb 8 20:10:31 EST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110208/c3132135/attachment.htm>
More information about the Insight-users
mailing list