DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2017-12-18, 17:34

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu, 2013-02-21, 15:36 
Offline

Joined: Fri, 2013-01-11, 15:37
Posts: 33
I'm pretty novice in C++ programming. I just learned Basic C++, did use it for my B.Sc thesis. But because I'm very naive, I'm finding extremely puzzled on how to use dcmtk when I literally have to do C++ programming. Can you please instruct me in an easy way how to start?

I wanted to avoid programming in C++ and tried to do it Matlab, but in a task where I have to change some specific pixel values in each frame of a 4D Dicom image I'm not being able to do that.


Top
 Profile  
 
PostPosted: Sun, 2013-02-24, 19:14 
Offline

Joined: Tue, 2012-04-17, 08:02
Posts: 15
Programming in C++ is a sophisticated task. Although I would recommend using DCMTK for performance, security and robustness reasons, I'm convinced that MATLAB >R2010 is able to handle 4D images. Try to linearize your 4D-array by using A(:) (mxnxoxp should be qx1 then) before writing to the file.


Top
 Profile  
 
PostPosted: Tue, 2013-02-26, 11:06 
Offline

Joined: Fri, 2013-01-11, 15:37
Posts: 33
braggpeaks wrote:
Programming in C++ is a sophisticated task. Although I would recommend using DCMTK for performance, security and robustness reasons, I'm convinced that MATLAB >R2010 is able to handle 4D images. Try to linearize your 4D-array by using A(:) (mxnxoxp should be qx1 then) before writing to the file.


I'm trying start learning using dcmtk in C++ and I tried with the following code found in the internet:

Code:
#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmimgle/dcmimage.h"
 
int main(int argc, char *argv[])
{
    OFLog::configure(OFLogger::INFO_LOG_LEVEL);
 
    DicomImage *image = new DicomImage("mf_image.dcm", CIF_UsePartialAccessToPixelData, 0, 10 /* fcount */);
 
    if (image->getStatus() == EIS_Normal)
    {
        do {
            DCMIMGLE_INFO("processing frame " << image->getFirstFrame() + 1 << " to "
                                              << image->getFirstFrame() + image->getFrameCount());
        } while (image->processNextFrames());
    }
 
    delete image;
 
    return 0;
}


I have some linker errors. I tried to rectify those linker errors by following the dependencies structure shown in this linkhttp://support.dcmtk.org/wiki/dcmtk/modules/start#dependencies

But then I have these following errors:
Code:
Error   88   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)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   85   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@?A0x1f01b54e@@YAXPAUHKEY__@@ABVOFString@@1@Z)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   86   error LNK2019: unresolved external symbol __imp__RegisterEventSourceA@8 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::init(void)" (?init@NTEventLogAppender@log4cplus@@IAEXXZ)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   84   error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "struct HKEY__ * __cdecl `anonymous namespace'::regGetKey(class OFString const &,unsigned long *)" (?regGetKey@?A0x1f01b54e@@YAPAUHKEY__@@ABVOFString@@PAK@Z)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   89   error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: void __thiscall log4cplus::NTEventLogAppender::addRegistryInfo(void)" (?addRegistryInfo@NTEventLogAppender@log4cplus@@IAEXXZ)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   83   error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x1f01b54e@@YA_NPAPAU_SID@@@Z)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   82   error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function "bool __cdecl `anonymous namespace'::GetCurrentUserSID(struct _SID * *)" (?GetCurrentUserSID@?A0x1f01b54e@@YA_NPAPAU_SID@@@Z)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   81   error LNK2019: unresolved external symbol __imp__GetLengthSid@4 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x1f01b54e@@YA_NPAPAU_SID@@PAU2@@Z)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   87   error LNK2019: unresolved external symbol __imp__DeregisterEventSource@4 referenced in function "public: virtual void __thiscall log4cplus::NTEventLogAppender::close(void)" (?close@NTEventLogAppender@log4cplus@@UAEXXZ)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   80   error LNK2019: unresolved external symbol __imp__CopySid@12 referenced in function "bool __cdecl `anonymous namespace'::CopySid(struct _SID * *,struct _SID *)" (?CopySid@?A0x1f01b54e@@YA_NPAPAU_SID@@PAU2@@Z)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\oflog.lib(ntelogap.obj)
Error   70   error LNK2005: _tolower already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(tolower.obj)
Error   62   error LNK2005: _sprintf_s already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(sprintf.obj)
Error   61   error LNK2005: _sprintf already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(sprintf.obj)
Error   45   error LNK2005: _remove already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(unlink.obj)
Error   71   error LNK2005: _mainCRTStartup already defined in MSVCRTD.lib(crtexe.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0.obj)
Error   50   error LNK2005: _localeconv already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(lconv.obj)
Error   77   error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(fflush.obj)
Error   54   error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0dat.obj)
Error   60   error LNK2005: _atoi already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(atox.obj)
Error   59   error LNK2005: __XcptFilter already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(winxfltr.obj)
Error   76   error LNK2005: __unlock_file already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(_file.obj)
Error   53   error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(mlock.obj)
Error   75   error LNK2005: __lock_file already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(_file.obj)
Error   52   error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(mlock.obj)
Error   69   error LNK2005: __invoke_watson already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(invarg.obj)
Error   68   error LNK2005: __invalid_parameter already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(invarg.obj)
Error   58   error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0dat.obj)
Error   47   error LNK2005: __free_dbg already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(dbgheap.obj)
Error   55   error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0dat.obj)
Error   49   error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(dosmap.obj)
Error   48   error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(dbgheap.obj)
Error   73   error LNK2005: __CrtDbgReportW already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(dbgrptw.obj)
Error   51   error LNK2005: __crt_debugger_hook already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(dbghook.obj)
Error   46   error LNK2005: __configthreadlocale already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(setlocal.obj)
Error   56   error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0dat.obj)
Error   57   error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0dat.obj)
Error   64   error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0init.obj)
Error   63   error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0init.obj)
Error   66   error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0init.obj)
Error   65   error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(crt0init.obj)
Error   72   error LNK2005: ___set_app_type already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(errmode.obj)
Error   74   error LNK2005: ___iob_func already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(_file.obj)
Error   67   error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\LIBCMTD.lib(hooks.obj)
Error   34   error LNK2005: "public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   23   error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   20   error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   6   error LNK2005: "public: virtual __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   3   error LNK2005: "public: virtual __thiscall std::basic_ostream<char,struct std::char_traits<char> >::~basic_ostream<char,struct std::char_traits<char> >(void)" (??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   2   error LNK2005: "public: virtual __thiscall std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   37   error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(ios.obj)
Error   42   error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(locale0.obj)
Error   41   error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(locale0.obj)
Error   29   error LNK2005: "public: int __thiscall std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   26   error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   35   error LNK2005: "public: class std::locale::facet * __thiscall std::locale::facet::_Decref(void)" (?_Decref@facet@locale@std@@QAEPAV123@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   27   error LNK2005: "public: class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const " (?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   32   error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::tie(void)const " (?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   1   error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(unsigned long)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z) already defined in dcmimage.lib(dicoimg.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   31   error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   28   error LNK2005: "public: char __thiscall std::basic_ios<char,struct std::char_traits<char> >::fill(void)const " (?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   33   error LNK2005: "public: bool __thiscall std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   4   error LNK2005: "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::basic_ostream<char,struct std::char_traits<char> >(class std::basic_streambuf<char,struct std::char_traits<char> > *,bool)" (??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   44   error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(xlock.obj)
Error   43   error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(xlock.obj)
Error   19   error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   22   error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   30   error LNK2005: "public: __int64 __thiscall std::ios_base::width(void)const " (?width@ios_base@std@@QBE_JXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   24   error LNK2005: "public: __int64 __thiscall std::ios_base::width(__int64)" (?width@ios_base@std@@QAE_J_J@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   25   error LNK2005: "public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   12   error LNK2005: "protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setp(char *,char *,char *)" (?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   9   error LNK2005: "protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setp(char *,char *)" (?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   8   error LNK2005: "protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setg(char *,char *,char *)" (?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   18   error LNK2005: "protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::pbump(int)" (?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   16   error LNK2005: "protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::gbump(int)" (?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   15   error LNK2005: "protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::pptr(void)const " (?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   13   error LNK2005: "protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::pbase(void)const " (?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   7   error LNK2005: "protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::gptr(void)const " (?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   14   error LNK2005: "protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::epptr(void)const " (?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   17   error LNK2005: "protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::egptr(void)const " (?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   10   error LNK2005: "protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::eback(void)const " (?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   11   error LNK2005: "protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   21   error LNK2005: "protected: __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)" (??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   5   error LNK2005: "protected: __thiscall std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct std::char_traits<char> >(void)" (??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ) already defined in dcmimage.lib(diyp2img.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\msvcprtd.lib(MSVCP100D.dll)
Error   38   error LNK2005: "private: static void __cdecl std::locale::facet::_Facet_Register(class std::locale::facet *)" (?_Facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in msvcprtd.lib(locale0_implib.obj)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(locale0.obj)
Error   36   error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(ios.obj)
Error   40   error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(locale0.obj)
Error   39   error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP100D.dll)   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\AccessMultipleFile\libcpmtd.lib(locale0.obj)
Error   90   error LNK1120: 10 unresolved externals   C:\Users\fibne-mozher\documents\visual studio 2010\Projects\AccessMultipleFile\Debug\AccessMultipleFile.exe


Could you please suggest what could be problem?


Top
 Profile  
 
PostPosted: Thu, 2013-07-11, 04:09 
Offline

Joined: Thu, 2009-03-19, 04:19
Posts: 80
Sorry but I' m naive in C++ programming too.The only two things I can told you are:
1.Some .lib files didn't be imported.
2.The runtime library you' ve set is not correct

You can check the settings about both issues in "Project->settings". The settings are:
1.C/C++->Code generation->Use run-time library
2.Link->Input->Object/library modules


Top
 Profile  
 
PostPosted: Thu, 2013-07-11, 08:51 
Offline

Joined: Wed, 2010-05-19, 09:27
Posts: 56
Location: Oldenburg, Germany
Have you read this?: FAQ #26


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group