[Insight-users] compile error using cygwin

Dan Mueller dan.muel at gmail.com
Wed Feb 9 02:43:53 EST 2011


Hi Seth,

I have encountered this issue also.

The issue is that the "_GetStockObject" symbol is not defined in any
of the linked libraries. This symbol comes from the gdi32 windows
library. In short: the gdi32 library is not being added to the link
libraries.

I hacked this to work by adding the line
    LINK_LIBRARIES(gdi32)
to Code/Common/CMakeLists.txt.

I notice for MINGW this line exists in the root CMakeLists.txt
IF(MINGW)
    LINK_LIBRARIES(gdi32)
ENDIF(MINGW)



More information about the Insight-users mailing list