Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem whit a guid conversion

Melkior
2004-09-28
2013-05-08
  • Melkior
    Melkior
    2004-09-28

    AviSplitter.cpp(624) : error C2440: 'initializing' : cannot convert from 'const GUID' to 'GUID &'
            Conversion loses qualifiers
    AviSplitter.cpp(625) : error C2440: 'initializing' : cannot convert from 'const GUID' to 'GUID &'
            Conversion loses qualifiers

    anyone can help me, i not found the link needed this 'initializing'

    tanks a lot

     
    • Gabest
      Gabest
      2004-09-29

      Just write a const at the beginning of the line. I'm not sure why my compiler (vc71) didn't show any error or even a warning there.

       
    • Melkior
      Melkior
      2004-09-29

      my linker have a lot of problem i guest

      i have deleted everyting about

      i have repair this line whit this 2 line

      GUID& SourceFormat = (GUID) (pSourceFormat ? *pSourceFormat : m_timeformat);
          GUID& TargetFormat = (GUID) (pTargetFormat ? *pTargetFormat : m_timeformat);

      but now, my linker generate 32 error:

      LINK : warning LNK4199: /DELAYLOAD:msimg32.dll ignored; no imports found from msimg32.dll
      GraphBuilder.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CDVDSession::~CDVDSession(void)" (??1CDVDSession@@UAE@XZ)
      GraphBuilder.obj : error LNK2019: unresolved external symbol "public: void __thiscall CDVDSession::Close(void)" (?Close@CDVDSession@@QAEXXZ) referenced in function "public: __thiscall CResetDVD::CResetDVD(unsigned short const *)" (??0CResetDVD@@QAE@PBG@Z)
      GraphBuilder.obj : error LNK2019: unresolved external symbol "protected: void __thiscall CDVDSession::EndSession(void)" (?EndSession@CDVDSession@@IAEXXZ) referenced in function "public: __thiscall CResetDVD::CResetDVD(unsigned short const *)" (??0CResetDVD@@QAE@PBG@Z)
      GraphBuilder.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall CDVDSession::Authenticate(void)" (?Authenticate@CDVDSession@@IAE_NXZ) referenced in function "public: __thiscall CResetDVD::CResetDVD(unsigned short const *)" (??0CResetDVD@@QAE@PBG@Z)
      GraphBuilder.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall CDVDSession::BeginSession(void)" (?BeginSession@CDVDSession@@IAE_NXZ) referenced in function "public: __thiscall CResetDVD::CResetDVD(unsigned short const *)" (??0CResetDVD@@QAE@PBG@Z)
      GraphBuilder.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CDVDSession::Open(unsigned short const *)" (?Open@CDVDSession@@QAE_NPBG@Z) referenced in function "public: __thiscall CResetDVD::CResetDVD(unsigned short const *)" (??0CResetDVD@@QAE@PBG@Z)
      GraphBuilder.obj : error LNK2019: unresolved external symbol "public: __thiscall CDVDSession::CDVDSession(void)" (??0CDVDSession@@QAE@XZ) referenced in function "public: __thiscall CResetDVD::CResetDVD(unsigned short const *)" (??0CResetDVD@@QAE@PBG@Z)
      OpenDlg.obj : error LNK2019: unresolved external symbol __imp__SHFree@4 referenced in function "protected: virtual int __thiscall COpenFileDialog::OnIncludeItem(struct _OFNOTIFYEXW *,long *)" (?OnIncludeItem@COpenFileDialog@@MAEHPAU_OFNOTIFYEXW@@PAJ@Z)
      vtsreaderRU.lib(VTSReader.obj) : error LNK2019: unresolved external symbol "public: int __thiscall CVobFile::Seek(int)" (?Seek@CVobFile@@QAEHH@Z) referenced in function "public: virtual long __thiscall CVTSStream::SetPointer(__int64)" (?SetPointer@CVTSStream@@UAEJ_J@Z)
      vtsreaderRU.lib(VTSReader.obj) : error LNK2019: unresolved external symbol "public: int __thiscall CVobFile::GetPosition(void)" (?GetPosition@CVobFile@@QAEHXZ) referenced in function "public: virtual long __thiscall CVTSStream::Read(unsigned char *,unsigned long,int,unsigned long *)" (?Read@CVTSStream@@UAEJPAEKHPAK@Z)
      vtsreaderRU.lib(VTSReader.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall CVobFile::Read(unsigned char *)" (?Read@CVobFile@@QAE_NPAE@Z) referenced in function "public: virtual long __thiscall CVTSStream::Read(unsigned char *,unsigned long,int,unsigned long *)" (?Read@CVTSStream@@UAEJPAEKHPAK@Z)
      vtsreaderRU.lib(VTSReader.obj) : error LNK2019: unresolved external symbol "public: int __thiscall CVobFile::GetLength(void)" (?GetLength@CVobFile@@QAEHXZ) referenced in function "public: virtual __int64 __thiscall CVTSStream::Size(__int64 *)" (?Size@CVTSStream@@UAE_JPA_J@Z)
      vtsreaderRU.lib(VTSReader.obj) : error LNK2019: unresolved external symbol "public: __thiscall CVobFile::CVobFile(void)" (??0CVobFile@@QAE@XZ) referenced in function "public: __thiscall CVTSStream::CVTSStream(void)" (??0CVTSStream@@QAE@XZ)
      vtsreaderRU.lib(VTSReader.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall CVobFile::Open(class ATL::CStringT<unsigned short,class StrTraitMFC<unsigned short,class ATL::ChTraitsCRT<unsigned short> > >,class CStringList &)" (?Open@CVobFile@@QAE_NV?$CStringT@GV?$StrTraitMFC@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@AAVCStringList@@@Z) referenced in function "public: bool __thiscall CVTSStream::Load(unsigned short const *)" (?Load@CVTSStream@@QAE_NPBG@Z)
      Mpeg2DecFilterRU.lib(Mpeg2DecFilter.obj) : error LNK2019: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::Get(struct _GUID const &,unsigned long,void *,unsigned long,void *,unsigned long,unsigned long *)" (?Get@CDeCSSInputPin@@UAGJABU_GUID@@KPAXK1KPAK@Z) referenced in function "public: virtual long __stdcall CMpeg2DecInputPin::Get(struct _GUID const &,unsigned long,void *,unsigned long,void *,unsigned long,unsigned long *)" (?Get@CMpeg2DecInputPin@@UAGJABU_GUID@@KPAXK1KPAK@Z)
      MpaDecFilterRU.lib(MpaDecFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::Get(struct _GUID const &,unsigned long,void *,unsigned long,void *,unsigned long,unsigned long *)" (?Get@CDeCSSInputPin@@UAGJABU_GUID@@KPAXK1KPAK@Z)
      Mpeg2DecFilterRU.lib(Mpeg2DecFilter.obj) : error LNK2019: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::QuerySupported(struct _GUID const &,unsigned long,unsigned long *)" (?QuerySupported@CDeCSSInputPin@@UAGJABU_GUID@@KPAK@Z) referenced in function "public: virtual long __stdcall CMpeg2DecInputPin::QuerySupported(struct _GUID const &,unsigned long,unsigned long *)" (?QuerySupported@CMpeg2DecInputPin@@UAGJABU_GUID@@KPAK@Z)
      MpaDecFilterRU.lib(MpaDecFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::QuerySupported(struct _GUID const &,unsigned long,unsigned long *)" (?QuerySupported@CDeCSSInputPin@@UAGJABU_GUID@@KPAK@Z)
      Mpeg2DecFilterRU.lib(Mpeg2DecFilter.obj) : error LNK2019: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::Set(struct _GUID const &,unsigned long,void *,unsigned long,void *,unsigned long)" (?Set@CDeCSSInputPin@@UAGJABU_GUID@@KPAXK1K@Z) referenced in function "public: virtual long __stdcall CMpeg2DecInputPin::Set(struct _GUID const &,unsigned long,void *,unsigned long,void *,unsigned long)" (?Set@CMpeg2DecInputPin@@UAGJABU_GUID@@KPAXK1K@Z)
      MpaDecFilterRU.lib(MpaDecFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::Set(struct _GUID const &,unsigned long,void *,unsigned long,void *,unsigned long)" (?Set@CDeCSSInputPin@@UAGJABU_GUID@@KPAXK1K@Z)
      Mpeg2DecFilterRU.lib(Mpeg2DecFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::Receive(struct IMediaSample *)" (?Receive@CDeCSSInputPin@@UAGJPAUIMediaSample@@@Z)
      MpaDecFilterRU.lib(MpaDecFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::Receive(struct IMediaSample *)" (?Receive@CDeCSSInputPin@@UAGJPAUIMediaSample@@@Z)
      decssfilterRU.lib(DeCSSFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::Receive(struct IMediaSample *)" (?Receive@CDeCSSInputPin@@UAGJPAUIMediaSample@@@Z)
      Mpeg2DecFilterRU.lib(Mpeg2DecFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::NonDelegatingQueryInterface(struct _GUID const &,void * *)" (?NonDelegatingQueryInterface@CDeCSSInputPin@@UAGJABU_GUID@@PAPAX@Z)
      MpaDecFilterRU.lib(MpaDecFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::NonDelegatingQueryInterface(struct _GUID const &,void * *)" (?NonDelegatingQueryInterface@CDeCSSInputPin@@UAGJABU_GUID@@PAPAX@Z)
      decssfilterRU.lib(DeCSSFilter.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CDeCSSInputPin::NonDelegatingQueryInterface(struct _GUID const &,void * *)" (?NonDelegatingQueryInterface@CDeCSSInputPin@@UAGJABU_GUID@@PAPAX@Z)
      Mpeg2DecFilterRU.lib(Mpeg2DecFilter.obj) : error LNK2019: unresolved external symbol "public: __thiscall CDeCSSInputPin::CDeCSSInputPin(unsigned short *,class CTransformFilter *,long *,unsigned short *)" (??0CDeCSSInputPin@@QAE@PAGPAVCTransformFilter@@PAJ0@Z) referenced in function "public: __thiscall CMpeg2DecInputPin::CMpeg2DecInputPin(class CTransformFilter *,long *,unsigned short *)" (??0CMpeg2DecInputPin@@QAE@PAVCTransformFilter@@PAJPAG@Z)
      MpaDecFilterRU.lib(MpaDecFilter.obj) : error LNK2001: unresolved external symbol "public: __thiscall CDeCSSInputPin::CDeCSSInputPin(unsigned short *,class CTransformFilter *,long *,unsigned short *)" (??0CDeCSSInputPin@@QAE@PAGPAVCTransformFilter@@PAJ0@Z)
      decssfilterRU.lib(DeCSSFilter.obj) : error LNK2001: unresolved external symbol "public: __thiscall CDeCSSInputPin::CDeCSSInputPin(unsigned short *,class CTransformFilter *,long *,unsigned short *)" (??0CDeCSSInputPin@@QAE@PAGPAVCTransformFilter@@PAJ0@Z)
      Mpeg2DecFilterRU.lib(Mpeg2DecFilter.obj) : error LNK2019: unresolved external symbol "public: void __thiscall CDeCSSInputPin::StripPacket(unsigned char * &,long &)" (?StripPacket@CDeCSSInputPin@@QAEXAAPAEAAJ@Z) referenced in function "protected: virtual long __thiscall CSubpicInputPin::Transform(struct IMediaSample *)" (?Transform@CSubpicInputPin@@MAEJPAUIMediaSample@@@Z)
      MpaDecFilterRU.lib(MpaDecFilter.obj) : error LNK2001: unresolved external symbol "public: void __thiscall CDeCSSInputPin::StripPacket(unsigned char * &,long &)" (?StripPacket@CDeCSSInputPin@@QAEXAAPAEAAJ@Z)
      .\Release Unicode\mplayerc.exe : fatal error LNK1120: 21 unresolved externals

      is a long opost i know, but, i realy want to work whit MPC.... is the best

       
    • Melkior
      Melkior
      2004-09-29

      *i have deleted everyting about

      i say : i have deleted everyting about the spragsplitter.dll in linger (not sure for the name, but is the good file)

       
    • BlindWanderer
      BlindWanderer
      2004-10-01

      • BlindWanderer
        BlindWanderer
        2004-10-01

        it's the same compiler that ships with
        Microsoft Visual Studio .NET 2003