[Insight-users] dllimport error gdcm under visual studio...
Neil.Burdett at csiro.au
Neil.Burdett at csiro.au
Wed Jan 27 17:02:50 EST 2010
Hi,
I was wondering if anyone could help me with the following errors I get;
milxDicomLoader.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall gdcm::DicomDir::SetDirectoryName(class std::basic_string,class std::allocator > const &)" (__imp_?SetDirectoryName at DicomDir@gdcm@@QAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z) referenced in function "public: class milx::milxImageGroup * __thiscall milx::milxDicomLoader::LoadDir(class wxString const &)" (?LoadDir at milxDicomLoader@milx@@QAEPAVmilxImageGroup at 2@ABVwxString@@@Z)
milxDicomLoader.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall gdcm::DicomDir::GetProgress(void)const " (__imp_?GetProgress at DicomDir@gdcm@@QBEMXZ) referenced in function "void __cdecl milx::milxDicomDirProgress(void *)" (?milxDicomDirProgress at milx@@YAXPAX at Z)
C:\milx-view\build\lib\Debug\milx-lib.dll : fatal error LNK1120: 2 unresolved externals
The code builds okay under Linux, but I get the above error on visual studio 2008.
The code is quite straight forward;
milxImageGroup *milxDicomLoader::LoadDir( const wxString &dirName )
{
gdcm::DicomDir *dir = new gdcm::DicomDir();
ProgressArgs args = { this, dir };
std::string stldirName(dirName.ToAscii());
dir->SetDirectoryName( stldirName );
dir->SetProgressMethod( milxDicomDirProgress, &args );
dir->ParseDirectory();
dir->SetProgressMethod(NULL);
return new milxImageGroup(dirName, dir);
}
So I assume its a configuration issue? Any help would be much appreciated
Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100128/94f11107/attachment-0001.htm>
More information about the Insight-users
mailing list