[Dcmlib] Mingw + dcgm ver0.6: Solution

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Feb 1 15:52:03 CET 2005


> 
> if there were spaces i've got errors during make configure.

wow! Which cmake version are you using ? Take anything above 2.0.


> i386-mingw32msvc-g++: unrecognized option `-rdynamic'

In my previous mail I told you that cmake knows you are on linux-gcc 
plateform and so make wrong assumption about the flag. You should 
replace the Linux.cmake with the CYGWIN.cmake (in your cmake/share... dir)

> /home/mkurgan/compile/gdcmBin/bin/libgdcm.a(gdcmDocument.o)
> (.text+0xa3c8):gdcmDocument.cxx: undefined reference to `ntohs at 4'

You need to have the win32 lib: Wsock32 and Snmpapi. Have a look at the 
link line in CMakeLists.txt:

TARGET_LINK_LIBRARIES(gdcm Wsock32 Snmpapi)


> second, mingw can't use so dynamic files, i don't know why... maybe must be 
> some other switch ( in my installation there where only static libraries, and 
> my qt compiled to dll ), static compilation was successful, when i use them i 
> report if everything goes smooth.
> 
> Thanks for advices and your time...


No problem

Just for curiosity what are you building ? Yet another DICOM viewer ;)
Mathieu



More information about the Dcmlib mailing list