Installing dcmtk-3.6.0

Compilation and installation of DCMTK

Moderator: Moderator Team

Message
Author
kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

Installing dcmtk-3.6.0

#1 Post by kb »

Hi,

I am using Visual studio 2008 and Win32 XP. I am trying to install dcmtk-3.5.5_20100903 snapshot on my system using CMake. In case of configuration using CMake I hv got these information:

Code: Select all

Info: DCMTK's builtin private dictionary support will be disabled
Info: Thread support will be enabled
Configuring done
Generating done
1.Is this means that there is no problem in configuring and generating .sln?

Next, After compiling ALL_BUILD using Visual Studio 2008 i have got

Code: Select all

1>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
1>ALL_BUILD - up-to-date
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
2.Is this means ALL_BUILD is compiled perfectly?

After compiling ALL_BUILD, i built INSTALL and it produces around 643 errors link:

Code: Select all

>Error	8	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	i2dbmp
Error	9	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	i2dbmp
Error	10	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	i2dbmp
Error	11	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	i2dbmp
Error	12	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	i2dbmp
Error	13	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x128f268d@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	i2dbmp
Error	14	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x128f268d@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	i2dbmp
Error	15	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	i2dbmp
Error	16	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	i2dbmp
Error	17	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	i2dbmp
Error	18	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	i2dbmp
Error	19	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-903\dcmdata\tests\Debug\i2dbmp.exe	1	i2dbmp
Error	20	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	findscu
Error	21	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	findscu
Error	22	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	findscu
Error	23	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	findscu
Error	24	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	findscu
Error	25	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x128f268d@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	findscu
Error	26	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x128f268d@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	findscu
Error	27	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	findscu
Error	28	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	findscu
Error	29	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	findscu
Error	30	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	findscu
Error	31	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-903\dcmnet\apps\Debug\findscu.exe	1	findscu
Error	32	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	echoscu
Error	33	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	echoscu
Error	34	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	echoscu
Error	35	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	echoscu
Error	36	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	echoscu
Error	37	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x128f268d@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	echoscu
Error	38	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x128f268d@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	echoscu
Error	39	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	echoscu
Error	40	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	echoscu
Error	41	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	echoscu
Error	42	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	echoscu
Error	43	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-903\dcmnet\apps\Debug\echoscu.exe	1	echoscu
Error	44	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	dump2dcm
Error	45	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dump2dcm
Error	46	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dump2dcm
Error	47	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dump2dcm
Error	48	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dump2dcm
Error	49	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x128f268d@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	dump2dcm
Error	50	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x128f268d@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	dump2dcm
Error	51	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	dump2dcm
Error	52	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	dump2dcm
Error	53	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	dump2dcm
Error	54	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	dump2dcm
Error	55	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-903\dcmdata\apps\Debug\dump2dcm.exe	dump2dcm
Error	56	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	dsrdump
Error	57	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dsrdump
Error	58	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dsrdump
Error	59	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dsrdump
Error	60	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dsrdump
Error	61	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x128f268d@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	dsrdump
Error	62	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x128f268d@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	dsrdump
Error	63	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	dsrdump
Error	64	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	dsrdump
Error	65	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	dsrdump
Error	66	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	dsrdump
Error	67	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-903\dcmsr\apps\Debug\dsrdump.exe	dsrdump
Error	68	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	dsr2xml
Error	69	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dsr2xml
Error	70	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dsr2xml
Error	71	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dsr2xml
Error	72	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dsr2xml
Error	73	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x128f268d@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	dsr2xml
Error	74	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x128f268d@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	dsr2xml
Error	75	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	dsr2xml
Error	76	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	dsr2xml
Error	77	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	dsr2xml
Error	78	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	dsr2xml
Error	79	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-903\dcmsr\apps\Debug\dsr2xml.exe	dsr2xml
Error	80	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	dsr2html
Error	81	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dsr2html
Error	82	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x128f268d@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	dsr2html
Error	83	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dsr2html
Error	84	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x128f268d@@YA_NPAPAU_SID@@@Z)	oflog.lib	dsr2html
Error	85	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x128f268d@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	dsr2html
Error	86	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x128f268d@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	dsr2html
Error	87	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	dsr2html
Error	88	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	dsr2html
Error	89	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	dsr2html
and 8 warnings related to macros

Plz plz help me solve this problem? I already go through all the related threads.

Thanks
:cry:
Last edited by kb on Mon, 2011-02-28, 10:01, edited 1 time in total.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

First question would be: Why are you using an old (and outdated) development snapshot instead of the official release 3.6.0?

Regarding your first question, the answer is "yes". Regarding your other questions: Something went wrong since "ALL_BUILD" should already do the compilation and linking; "INSTALL" simply copies the generated files to the right place (and creates the HTML documentation if enabled).

kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

Thankx sir for your reply.

#3 Post by kb »

Hi,

As per your suggestion i downloaded DCMTK-3.6, and without making any change in CMakeLists.txt and using CMake 2.8, i hv started configure. After configuring and generating i got these info.

Code: Select all

Looking for sysinfo - not found
Looking for tempnam
Looking for tempnam - found
Looking for tmpnam
Looking for tmpnam - found
Looking for uname
Looking for uname - not found
Looking for usleep
Looking for usleep - not found
Looking for waitpid
Looking for waitpid - not found
Looking for _findfirst
Looking for _findfirst - found
Looking for isinf
Looking for isinf - not found.
Looking for isnan
Looking for isnan - not found.
Looking for finite
Looking for finite - not found.
Looking for flock
Looking for flock - not found......
Configuring done

Info: DCMTK's builtin private dictionary support will be disabled
Info: Thread support will be enabled
Configuring done
Generating done
1.Is there any problem or configuration/generation is completed without any problem? :?:

After generation, i have built the ALL_BUILD. And I got 655 errors like:

Code: Select all

Error	1	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	i2dbmp
Error	2	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x629af1a8@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	i2dbmp
Error	3	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x629af1a8@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	i2dbmp
Error	4	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x629af1a8@@YA_NPAPAU_SID@@@Z)	oflog.lib	i2dbmp
Error	5	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x629af1a8@@YA_NPAPAU_SID@@@Z)	oflog.lib	i2dbmp
Error	6	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x629af1a8@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	i2dbmp
Error	7	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x629af1a8@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	i2dbmp
Error	8	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	i2dbmp
Error	9	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	i2dbmp
Error	10	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	i2dbmp
Error	11	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	i2dbmp
Error	12	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-bin\dcmdata\tests\Debug\i2dbmp.exe	i2dbmp
Error	13	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	findscu
Error	14	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x629af1a8@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	findscu
Error	15	error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x629af1a8@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	findscu
Error	16	error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x629af1a8@@YA_NPAPAU_SID@@@Z)	oflog.lib	findscu
Error	17	error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x629af1a8@@YA_NPAPAU_SID@@@Z)	oflog.lib	findscu
Error	18	error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x629af1a8@@YAPAUHKEY__@@ABVOFString@@PAK@Z)	oflog.lib	findscu
Error	19	error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x629af1a8@@YAXPAUHKEY__@@ABVOFString@@1@Z)	oflog.lib	findscu
Error	20	error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	findscu
Error	21	error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)	oflog.lib	findscu
Error	22	error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)	oflog.lib	findscu
Error	23	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)	oflog.lib	findscu
Error	24	fatal error LNK1120: 11 unresolved externals	E:\dcmtk-bin\dcmnet\apps\Debug\findscu.exe	findscu
Error	25	error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)	dcmdata.lib	echoscu
Error	26	error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x629af1a8@@YA_NPAPAU_SID@@PAU2@@Z)	oflog.lib	echoscu......................................
What are all these errors and How to resolve this? Please help me........ :(

Thanks

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

These are linker errors and mean that apparently some library is missing. Did you already check that common libraries like netapi32 and wsock32 are in the list of libraries to be linked?

We've tested DCMTK 3.6.0 with VisualStudio 2008 (Express) and CMake 2.8.3, and it worked out of the box - see INSTALL file for details on the supported/tested platforms.

kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

#5 Post by kb »

Yes these libraries were already set in the CmakeLists.txt file of DCMTK-3.6.

Code: Select all

SET(WIN32_STD_LIBRARIES ws2_32 netapi32 wsock32)
I am using Visual Studio 2008 Professional Edition. I downloaded DCMTK-3.6 from http://dicom.offis.de/download/dcmtk/dcmtk360/
link and these libraries were already set in the CmakeLists.txt. So without making any change in the CMakeLists.txt files I had configured dcmtk and built ALL_BUILD.

Thanks :cry:
Last edited by kb on Fri, 2011-02-25, 12:06, edited 1 time in total.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#6 Post by Jörg Riesmeier »

Yes these libraries were already set in the CmakeLists.txt file of DCMTK-3.6.
Yes, I know that, but are these libraries really specified in your VisualStudio project settings? Have you already checked what the linkers says in verbose mode?

kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

#7 Post by kb »

No i didn't check. Can you please tell me: I have to check linker's verbose mode in some other application or in Project file of dcmtk-3.6?

While checking a sample application(not dcmtk) in verbose mode i am getting these outputs:

Code: Select all

1>------ Build started: Project: abc, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>AssemblyInfo.cpp
1>abc.cpp
1>Generating Code...
1>Compiling managed resources...
1>Read in 0 resources from "c:\abc\abc\Form1.resX"
1>Writing resource file...  Done.
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>Searching libraries
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCURTD.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>Finished searching libraries
1>Searching libraries
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCURTD.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>Finished searching libraries
1>Embedding manifest...
1>Build log was saved at "file://c:\abc\abc\Debug\BuildLog.htm"
1>abc - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
And while building storescu (a project in dcmtk) in verbose mode i get:

Code: Select all

1>------ Build started: Project: storescu, Configuration: Debug Win32 ------
1>Linking...
1>Searching libraries
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\advapi32.lib:
1>    Searching ..\libsrc\Debug\dcmnet.lib:
1>    Searching ..\..\dcmdata\libsrc\Debug\dcmdata.lib:
1>    Searching ..\..\oflog\libsrc\Debug\oflog.lib:
1>    Searching ..\..\ofstd\libsrc\Debug\ofstd.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ws2_32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\netapi32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\wsock32.lib:
1>    Searching ..\..\dcmtls\libsrc\Debug\dcmtls.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMTD.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\advapi32.lib:
1>    Searching ..\libsrc\Debug\dcmnet.lib:
1>    Searching ..\..\dcmdata\libsrc\Debug\dcmdata.lib:
1>    Searching ..\..\oflog\libsrc\Debug\oflog.lib:
1>    Searching ..\..\ofstd\libsrc\Debug\ofstd.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ws2_32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\netapi32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\wsock32.lib:
1>    Searching ..\..\dcmtls\libsrc\Debug\dcmtls.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMTD.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>Finished searching libraries
1>Searching libraries
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\advapi32.lib:
1>    Searching ..\libsrc\Debug\dcmnet.lib:
1>    Searching ..\..\dcmdata\libsrc\Debug\dcmdata.lib:
1>    Searching ..\..\oflog\libsrc\Debug\oflog.lib:
1>    Searching ..\..\ofstd\libsrc\Debug\ofstd.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ws2_32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\netapi32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\wsock32.lib:
1>    Searching ..\..\dcmtls\libsrc\Debug\dcmtls.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMTD.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\advapi32.lib:
1>    Searching ..\libsrc\Debug\dcmnet.lib:
1>    Searching ..\..\dcmdata\libsrc\Debug\dcmdata.lib:
1>    Searching ..\..\oflog\libsrc\Debug\oflog.lib:
1>    Searching ..\..\ofstd\libsrc\Debug\ofstd.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ws2_32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\netapi32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\wsock32.lib:
1>    Searching ..\..\dcmtls\libsrc\Debug\dcmtls.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:
1>Finished searching libraries
1>dcmdata.lib(dcuid.obj) : error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x629af1a8@@YA_NPAPAU_SID@@PAU2@@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x629af1a8@@YA_NPAPAU_SID@@PAU2@@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x629af1a8@@YA_NPAPAU_SID@@@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x629af1a8@@YA_NPAPAU_SID@@@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x629af1a8@@YAPAUHKEY__@@ABVOFString@@PAK@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl `anonymous namespace'::regSetString(struct HKEY__ *,class OFString const &,class OFString const &)" (?regSetString@?A0x629af1a8@@YAXPAUHKEY__@@ABVOFString@@1@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__ReportEventA@36 referenced in function "protected: virtual void __thiscall log4cplus::NTEventLogAppender::append(class log4cplus::spi::InternalLoggingEvent const &)" (?append@NTEventLogAppender@log4cplus@@MAEXABVInternalLoggingEvent@spi@2@@Z)
1>oflog.lib(ntelogap.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)
1>E:\dcmtk-bin\dcmnet\apps\Debug\storescu.exe : fatal error LNK1120: 11 unresolved externals
1>Build log was saved at "file://e:\dcmtk-bin\dcmnet\apps\storescu.dir\Debug\BuildLog.htm"
1>storescu - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========
Is this means that the standard libraries i.e netapi32.lib,wsock32.lib etc are not linked with visual studio?If yes, Can you plz help me to how to link these libraries to visual studio 2008.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#8 Post by Jörg Riesmeier »

In VisualStudio 2008, you can check the linker settings of one of the many sub-projects within DCMTK (e.g. dcmdump) by right clicking on the project name (on the left side in the Solution Explorer) and selecting "Properties". Then go to "Configuration Properties / Linker / Input" in the tree view on the left side of the dialog window and check the value of the "Additional Dependencies" field. Alternatively, you could also check the complete linker settings when selecting the entry "Command Line" in the tree.

kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

#9 Post by kb »

Yes i have checked all the projects in dcmtk. ws2_32.lib wsock32.lib netapi32.lib all of these three libraries are there. Now what I have to do?

Thankx

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#10 Post by Jörg Riesmeier »

Have you already tried to enable the verbose mode of the linker in order to see whether the libraries are really found (and linked) to the executable binary? If you don't know how to do this, please read the documentaion of your compiler/linker/IDE ...

kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

#11 Post by kb »

Yes i had tried. What i had done: I select storescu project from the DCMTK-> Right Click->Properties->Linker->Command Line->In Addition Option Box: I typed: /VERBOSE:LIB->OK and then i build that project and output i got on the output window is already sent. in the above reply.

Is this a correct way to check verbose mode of linker or not? if no then can u please tell me how to do it? After searching i only get this way of setting linker in verbose mode.

kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

#12 Post by kb »

After doing few modifications and then building the ALL_BUILD from DCMTK
i get:

Code: Select all

75>Compiling...
75>xml2dcm.cc
73>Embedding manifest...
73>Build log was saved at "file://e:\dcmtk-bin\dcmimage\apps\dcm2pnm.dir\Debug\BuildLog.htm"
73>dcm2pnm - 0 error(s), 0 warning(s)
76>------ Build started: Project: img2dcm, Configuration: Debug Win32 ------
76>Compiling...
76>img2dcm.cc
75>Linking...
76>Linking...
75>Embedding manifest...
75>Build log was saved at "file://e:\dcmtk-bin\dcmdata\apps\xml2dcm.dir\Debug\BuildLog.htm"
75>xml2dcm - 0 error(s), 0 warning(s)
76>Embedding manifest...
76>Build log was saved at "file://e:\dcmtk-bin\dcmdata\apps\img2dcm.dir\Debug\BuildLog.htm"
76>img2dcm - 0 error(s), 0 warning(s)
77>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
77>Project not selected to build for this solution configuration 
========== Build: 76 succeeded, 0 failed, 2 up-to-date, 1 skipped ==========

And after building INSTALL from DCMTK i get:

Code: Select all

1>-- Installing: C:/Program Files/DCMTK/bin/dcmcjpls.exe
1>-- Installing: C:/Program Files/DCMTK/bin/dcmdjpls.exe
1>-- Installing: C:/Program Files/DCMTK/bin/dcml2pnm.exe
1>-- Installing: C:/Program Files/DCMTK/include/dcmtk/dcmjpls/djcodecd.h
1>-- Installing: C:/Program Files/DCMTK/include/dcmtk/dcmjpls/djcodece.h
1>-- Installing: C:/Program Files/DCMTK/include/dcmtk/dcmjpls/djcparam.h
1>-- Installing: C:/Program Files/DCMTK/include/dcmtk/dcmjpls/djdecode.h
1>-- Installing: C:/Program Files/DCMTK/include/dcmtk/dcmjpls/djencode.h
1>-- Installing: C:/Program Files/DCMTK/include/dcmtk/dcmjpls/djlsutil.h
1>-- Installing: C:/Program Files/DCMTK/include/dcmtk/dcmjpls/djrparam.h
1>Build log was saved at "file://e:\dcmtk-bin\INSTALL.dir\Debug\BuildLog.htm"
1>INSTALL - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 78 up-to-date, 0 skipped ==========

I think the installation is complete. Is this so? Should i proceed further?

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#13 Post by Jörg Riesmeier »

Since it now seems to work, which modifications have you done?

kb
Posts: 15
Joined: Wed, 2011-02-23, 05:04
Location: chandigarh

#14 Post by kb »

I find out in the output window while i was building a project from the dcmtk by setting the linker in verbose mode that the netapi32.lib,wsock32.lib's libraries paths are incorrect i.e the paths are like if you see in my last reply are:

Code: Select all

Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\netapi32.lib:
1>    Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\wsock32.lib: 
So i changed the path of these two libraries to :

Code: Select all

C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\
and now the application is running fine.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#15 Post by Jörg Riesmeier »

Ok, then this is an issue with your VisualStudio installation. Do you have multiple versions of the Microsoft compiler installed?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest