Hi all,<br><br>There are features in both the vtk git master and the gdcm sourceforge git master that I need, and I need both to be wrapped in Java.<br><br>Unfortunately, the gdcm build process isn&#39;t work when I move from vtk 5.6 to vtk 5.7 due to linker errors.  VTK 5.6 and gdcm git master work fine for my setup (vs2008, either 64 bit or 32 bit compilation).  If I try to build vtk with static linking, vtk_wrap_java doesn&#39;t work, and therefore gdcm_wrap_java doesn&#39;t work, so statically linked libraries are out.<br>
<br>My linker errors come from the vtkgdcm project in gdcm, and are these:<br><br>1&gt;------ Build started: Project: vtkgdcm, Configuration: Release x64 ------<br>1&gt;Linking...<br>1&gt;   Creating library H:\src\gdcm-cmake-build-mvs-64\bin\Release\vtkgdcm.lib and object H:\src\gdcm-cmake-build-mvs-64\bin\Release\vtkgdcm.exp<br>
1&gt;vtkGDCMImageReader.obj : error LNK2019: unresolved external symbol &quot;public: void __cdecl vtkLookupTable16::SetNumberOfTableValues(__int64)&quot; (?SetNumberOfTableValues@vtkLookupTable16@@QEAAX_J@Z) referenced in function &quot;protected: int __cdecl vtkGDCMImageReader::LoadSingleFile(char const *,char *,unsigned long &amp;)&quot; (?LoadSingleFile@vtkGDCMImageReader@@IEAAHPEBDPEADAEAK@Z)<br>
1&gt;vtkGDCMImageWriter.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: class vtkStdString &amp; __cdecl vtkStringArray::GetValue(int)&quot; (__imp_?GetValue@vtkStringArray@@QEAAAEAVvtkStdString@@H@Z) referenced in function &quot;protected: virtual char * __cdecl vtkGDCMImageWriter::GetFileName(void)&quot; (?GetFileName@vtkGDCMImageWriter@@MEAAPEADXZ)<br>
1&gt;vtkGDCMThreadedImageReader2.obj : error LNK2001: unresolved external symbol &quot;__declspec(dllimport) public: class vtkStdString &amp; __cdecl vtkStringArray::GetValue(int)&quot; (__imp_?GetValue@vtkStringArray@@QEAAAEAVvtkStdString@@H@Z)<br>
1&gt;vtkGDCMImageWriter.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: int __cdecl vtkStringArray::GetNumberOfValues(void)&quot; (__imp_?GetNumberOfValues@vtkStringArray@@QEAAHXZ) referenced in function &quot;protected: int __cdecl vtkGDCMImageWriter::WriteGDCMData(class vtkImageData *,int)&quot; (?WriteGDCMData@vtkGDCMImageWriter@@IEAAHPEAVvtkImageData@@H@Z)<br>
1&gt;vtkGDCMImageWriter.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: unsigned char * __cdecl vtkDataArrayTemplate&lt;unsigned char&gt;::WritePointer(int,int)&quot; (__imp_?WritePointer@?$vtkDataArrayTemplate@E@@QEAAPEAEHH@Z) referenced in function &quot;protected: int __cdecl vtkGDCMImageWriter::WriteGDCMData(class vtkImageData *,int)&quot; (?WriteGDCMData@vtkGDCMImageWriter@@IEAAHPEAVvtkImageData@@H@Z)<br>
1&gt;vtkGDCMPolyDataReader.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: int __cdecl vtkCellArray::InsertNextCell(int,int const *)&quot; (__imp_?InsertNextCell@vtkCellArray@@QEAAHHPEBH@Z) referenced in function &quot;protected: int __cdecl vtkGDCMPolyDataReader::RequestData_HemodynamicWaveformStorage(class gdcm::Reader const &amp;,class vtkInformationVector *)&quot; (?RequestData_HemodynamicWaveformStorage@vtkGDCMPolyDataReader@@IEAAHAEBVReader@gdcm@@PEAVvtkInformationVector@@@Z)<br>
1&gt;vtkGDCMPolyDataReader.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: int __cdecl vtkPoints::InsertNextPoint(float const * const)&quot; (__imp_?InsertNextPoint@vtkPoints@@QEAAHQEBM@Z) referenced in function &quot;protected: int __cdecl vtkGDCMPolyDataReader::RequestData_HemodynamicWaveformStorage(class gdcm::Reader const &amp;,class vtkInformationVector *)&quot; (?RequestData_HemodynamicWaveformStorage@vtkGDCMPolyDataReader@@IEAAHAEBVReader@gdcm@@PEAVvtkInformationVector@@@Z)<br>
1&gt;vtkGDCMPolyDataReader.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: void __cdecl vtkDataArray::InsertTuple3(int,double,double,double)&quot; (__imp_?InsertTuple3@vtkDataArray@@QEAAXHNNN@Z) referenced in function &quot;protected: int __cdecl vtkGDCMPolyDataReader::RequestData_RTStructureSetStorage(class gdcm::Reader const &amp;,class vtkInformationVector *)&quot; (?RequestData_RTStructureSetStorage@vtkGDCMPolyDataReader@@IEAAHAEBVReader@gdcm@@PEAVvtkInformationVector@@@Z)<br>
1&gt;vtkGDCMPolyDataWriter.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: void __cdecl vtkDoubleArray::GetTupleValue(int,double *)&quot; (__imp_?GetTupleValue@vtkDoubleArray@@QEAAXHPEAN@Z) referenced in function &quot;protected: void __cdecl vtkGDCMPolyDataWriter::WriteRTSTRUCTData(class gdcm::File &amp;,int)&quot; (?WriteRTSTRUCTData@vtkGDCMPolyDataWriter@@IEAAXAEAVFile@gdcm@@H@Z)<br>
1&gt;vtkGDCMPolyDataWriter.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: void __cdecl vtkPoints::GetPoint(int,double * const)&quot; (__imp_?GetPoint@vtkPoints@@QEAAXHQEAN@Z) referenced in function &quot;protected: void __cdecl vtkGDCMPolyDataWriter::WriteRTSTRUCTData(class gdcm::File &amp;,int)&quot; (?WriteRTSTRUCTData@vtkGDCMPolyDataWriter@@IEAAXAEAVFile@gdcm@@H@Z)<br>
1&gt;vtkGDCMPolyDataWriter.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: int __cdecl vtkCellArray::GetNextCell(int &amp;,int * &amp;)&quot; (__imp_?GetNextCell@vtkCellArray@@QEAAHAEAHAEAPEAH@Z) referenced in function &quot;protected: void __cdecl vtkGDCMPolyDataWriter::WriteRTSTRUCTData(class gdcm::File &amp;,int)&quot; (?WriteRTSTRUCTData@vtkGDCMPolyDataWriter@@IEAAXAEAVFile@gdcm@@H@Z)<br>
1&gt;vtkLookupTable16.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: unsigned short * __cdecl vtkDataArrayTemplate&lt;unsigned short&gt;::WritePointer(int,int)&quot; (__imp_?WritePointer@?$vtkDataArrayTemplate@G@@QEAAPEAGHH@Z) referenced in function &quot;public: unsigned char * __cdecl vtkLookupTable16::WritePointer(int,int)&quot; (?WritePointer@vtkLookupTable16@@QEAAPEAEHH@Z)<br>
1&gt;vtkLookupTable16.obj : error LNK2001: unresolved external symbol &quot;public: virtual int __cdecl vtkLookupTable::GetNumberOfAvailableColors(void)&quot; (?GetNumberOfAvailableColors@vtkLookupTable@@UEAAHXZ)<br>1&gt;vtkLookupTable16.obj : error LNK2001: unresolved external symbol &quot;public: virtual int __cdecl vtkLookupTable::GetIndex(double)&quot; (?GetIndex@vtkLookupTable@@UEAAHN@Z)<br>
1&gt;vtkLookupTable16.obj : error LNK2001: unresolved external symbol &quot;public: virtual void __cdecl vtkLookupTable::SetNumberOfColors(int)&quot; (?SetNumberOfColors@vtkLookupTable@@UEAAXH@Z)<br>1&gt;vtkLookupTable16.obj : error LNK2001: unresolved external symbol &quot;public: virtual int __cdecl vtkLookupTable::GetNumberOfColorsMinValue(void)&quot; (?GetNumberOfColorsMinValue@vtkLookupTable@@UEAAHXZ)<br>
1&gt;vtkLookupTable16.obj : error LNK2001: unresolved external symbol &quot;public: virtual int __cdecl vtkLookupTable::GetNumberOfColorsMaxValue(void)&quot; (?GetNumberOfColorsMaxValue@vtkLookupTable@@UEAAHXZ)<br>1&gt;vtkLookupTable16.obj : error LNK2001: unresolved external symbol &quot;public: virtual int __cdecl vtkLookupTable::GetNumberOfColors(void)&quot; (?GetNumberOfColors@vtkLookupTable@@UEAAHXZ)<br>
1&gt;vtkGDCMThreadedImageReader2.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: int __cdecl vtkStringArray::InsertNextValue(char const *)&quot; (__imp_?InsertNextValue@vtkStringArray@@QEAAHPEBD@Z) referenced in function &quot;public: virtual void __cdecl vtkGDCMThreadedImageReader2::SetFileName(char const *)&quot; (?SetFileName@vtkGDCMThreadedImageReader2@@UEAAXPEBD@Z)<br>
1&gt;H:\src\gdcm-cmake-build-mvs-64\bin\Release\vtkgdcm.dll : fatal error LNK1120: 18 unresolved externals<br>1&gt;Build log was saved at &quot;file://h:\src\gdcm-cmake-build-mvs-64\Utilities\VTK\vtkgdcm.dir\Release\BuildLog.htm&quot;<br>
1&gt;vtkgdcm - 20 error(s), 0 warning(s)<br>========== Build: 0 succeeded, 1 failed, 13 up-to-date, 0 skipped ==========<br><br>Again, these linker errors do not happen in vtk 5.6.<br><br>Here is the list of libraries that this project includes:<br>
<br>kernel32.lib<br>user32.lib<br>gdi32.lib<br>winspool.lib<br>shell32.lib<br>ole32.lib<br>oleaut32.lib<br>uuid.lib<br>comdlg32.lib<br>advapi32.lib<br>..\..\bin\Release\gdcmMSFF.lib<br>vtkCommon.lib<br>vtkIO.lib<br>vtkImaging.lib<br>
vtkRendering.lib<br>..\..\bin\Release\gdcmDICT.lib<br>..\..\bin\Release\gdcmIOD.lib<br>..\..\bin\Release\gdcmDSED.lib<br>..\..\bin\Release\gdcmCommon.lib<br>vtkDICOMParser.lib<br>vtkNetCDF_cxx.lib<br>vtkNetCDF.lib<br>vtkmetaio.lib<br>
comctl32.lib<br>vtksqlite.lib<br>vtkpng.lib<br>vtktiff.lib<br>vtkzlib.lib<br>vtkjpeg.lib<br>vtkexpat.lib<br>vfw32.lib<br>vtkGraphics.lib<br>vtkFiltering.lib<br>vtksys.lib<br>ws2_32.lib<br>wsock32.lib<br>vtkverdict.lib<br>
vtkftgl.lib<br>vtkfreetype.lib<br>opengl32.lib\<br><br>Is this a simple fix, like 5.7 introduced another language that needs to be linked in here?  Or is the problem more complicated?<br><br>Thanks,<br>Mark<br>