[Insight-users] problem building .dll
William A. Hoffman
billlist at nycap . rr . com
Thu, 30 Oct 2003 07:38:24 -0500
What OS/compiler are you using? Windows dll's are a bit harder
to create that a .so on unix. A dll must be told explicitly which symbols
are to be exported.
-Bill
At 12:37 PM 10/30/2003, soumend at magnum . barc . ernet . in wrote:
>Hi All,
>
>I have tried to make a shared library (.dll) from a group of cxx file. For that
>I have used following cmakelist....
>
>PROJECT(newclass)
>....
>ADD_LIBRARY(newclass SHARED
>DICOMImageSeriesFilesTOImageData.cxx
>ietkDICOMSeriesIO.cxx
>DICOMApphelper1.cxx
>)
>
>TARGET_LINK_LIBRARIES(newclass
>vtkGraphics
>vtkRendering
>vtkImaging
>vtkFiltering
>vtkCommon
>vtkIO
>vtkftgl
>vtkzlib
>vtkHybrid
>ITKBasicFilters
>itksys
>ITKCommon
>ITKIO
>itkzlib
>ITKNumerics
>ITKAlgorithms
>)
>
>but it is creating only newclass.dll.so whenever i am trying to use this new
>library there arises a linking error that newclass.lib is not found. I presume
>it is problem with cmake only but cant figure out the problem. will anyone help
>me out.
>thanx.
>soumen
>
>
>
>
>
>-------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk . org
>http://www . itk . org/mailman/listinfo/insight-users