Menu

Linkage error using VidCapLib.lib

Help
2005-04-08
2013-04-15
  • Carlos Martínez Burgos

    Hi all.

    I have downloaded VidCapture v0.30 and when I try to build test examples using Visual C++ 6.0 I have these errors:

    --------------------Configuration: VidCapTest - Win32 Release--------------------
    Compiling...
    Example.cpp
    Linking...
    VidCapLib.lib(CVVidCaptureDSWin32.obj) : error LNK2001: unresolved external symbol _MEDIASUBTYPE_ARGB32
    VidCapLib.lib(CVVidCaptureDSWin32.obj) : error LNK2001: unresolved external symbol _IID_ISampleGrabber
    VidCapLib.lib(CVVidCaptureDSWin32.obj) : error LNK2001: unresolved external symbol _CLSID_SampleGrabber
    VidCapLib.lib(CVVidCaptureDSWin32.obj) : error LNK2001: unresolved external symbol _CLSID_NullRenderer
    VidCapLib.lib(CVVidCaptureDSWin32.obj) : error LNK2001: unresolved external symbol _IID_ISampleGrabberCB
    ../Build/VidCapTest/VidCaptureTest.exe : fatal error LNK1120: 5 unresolved externals
    Error executing link.exe.

    I'm working in Windows XP professional with DirectX 9.0c SDK (April 2005).

    When I run the executables everything is OK but when I try to compile my program or the Example.cpp program from the library these errors appear.

    Could you tell me what should I do to resolve it?

    Thanks in advance.

     
    • Keith A. Flick

      Keith A. Flick - 2007-03-13

      If you found out how to fix it please post it here.  I'm having
      the same problem.

       
    • Michael Ellison

      Michael Ellison - 2007-12-10

      try linking to strmiids.lib. Check the documentation, there's a list of libraries to link to.

       
    • hram

      hram - 2008-03-25

      I have downloaded VidCapture v0.30 and when I try to build test examples using Visual C++ 6.0 I have these errors:

      --------------------Configuration: VidCapLib - Win32 Release--------------------
      Compiling...
      CVVidCaptureDSWin32.cpp
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2146: syntax error : missing ';' before identifier 'lpSurf'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2501: 'lpSurf' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27815) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27822) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27915) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27940) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27987) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27991) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(28114) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(28127) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2146: syntax error : missing ';' before identifier 'pDDS'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2501: 'pDDS' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2146: syntax error : missing ';' before identifier 'pddsVideoSurface'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2501: 'pddsVideoSurface' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30032) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30036) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30045) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30144) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30157) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30184) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30383) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30496) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30638) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30642) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30727) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30740) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\qedit.h(492) : fatal error C1083: Cannot open include file: 'dxtrans.h': No such file or directory
      CVDShowUtil.cpp
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2146: syntax error : missing ';' before identifier 'lpSurf'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2501: 'lpSurf' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27815) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27822) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27915) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27940) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27987) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27991) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(28114) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(28127) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2146: syntax error : missing ';' before identifier 'pDDS'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2501: 'pDDS' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2146: syntax error : missing ';' before identifier 'pddsVideoSurface'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2501: 'pddsVideoSurface' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30032) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30036) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30045) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30144) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30157) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30184) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30383) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30496) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30638) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30642) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30727) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30740) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\qedit.h(492) : fatal error C1083: Cannot open include file: 'dxtrans.h': No such file or directory
      CVPlatformWin32.cpp
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2146: syntax error : missing ';' before identifier 'lpSurf'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27614) : error C2501: 'lpSurf' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27815) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27822) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27915) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27940) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27987) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(27991) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(28114) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(28127) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2146: syntax error : missing ';' before identifier 'pDDS'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(29843) : error C2501: 'pDDS' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2146: syntax error : missing ';' before identifier 'pddsVideoSurface'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30001) : error C2501: 'pddsVideoSurface' : missing storage-class or type specifiers
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30032) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30036) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30045) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30144) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30157) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30184) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30383) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30496) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30638) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30642) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30727) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\strmif.h(30740) : error C2061: syntax error : identifier 'LPDIRECTDRAW7'
      D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\qedit.h(492) : fatal error C1083: Cannot open include file: 'dxtrans.h': No such file or directory
      Error executing cl.exe.

      VidCapLib.lib - 90 error(s), 0 warning(s)

      I'm working in Windows XP professional with DirectX 9 SDK (November 2007).

       

Log in to post a comment.