Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DirectShow : Linker Error

DirectShow : Linker Error

Scheduled Pinned Locked Moved C / C++ / MFC
helpgraphicsgame-devdebuggingquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tspramod
    wrote on last edited by
    #1

    When am building my application using DirectX(DirectShow) components, am getting the following Linker errors: Linking... error LNK2001: unresolved external symbol _IID_IMediaEvent error LNK2001: unresolved external symbol _IID_IMediaControl error LNK2001: unresolved external symbol _CLSID_FilterGraph error LNK2001: unresolved external symbol _IID_IGraphBuilder Debug/trial_DShow.exe : fatal error LNK1120: 4 unresolved externals Can anyone help in what scenario does the above errors pitch in.?? Thanks, Pramod.

    S Y 2 Replies Last reply
    0
    • T tspramod

      When am building my application using DirectX(DirectShow) components, am getting the following Linker errors: Linking... error LNK2001: unresolved external symbol _IID_IMediaEvent error LNK2001: unresolved external symbol _IID_IMediaControl error LNK2001: unresolved external symbol _CLSID_FilterGraph error LNK2001: unresolved external symbol _IID_IGraphBuilder Debug/trial_DShow.exe : fatal error LNK1120: 4 unresolved externals Can anyone help in what scenario does the above errors pitch in.?? Thanks, Pramod.

      S Offline
      S Offline
      Sujan Christo
      wrote on last edited by
      #2

      Hi, You have to link the needed libs. Think that you have to add strmiids.lib explicity in the linker options Hope that this will help you Sujan

      1 Reply Last reply
      0
      • T tspramod

        When am building my application using DirectX(DirectShow) components, am getting the following Linker errors: Linking... error LNK2001: unresolved external symbol _IID_IMediaEvent error LNK2001: unresolved external symbol _IID_IMediaControl error LNK2001: unresolved external symbol _CLSID_FilterGraph error LNK2001: unresolved external symbol _IID_IGraphBuilder Debug/trial_DShow.exe : fatal error LNK1120: 4 unresolved externals Can anyone help in what scenario does the above errors pitch in.?? Thanks, Pramod.

        Y Offline
        Y Offline
        ytod
        wrote on last edited by
        #3

        Usually, the link error 2001 means that you didn't link libraries required. The help file of the directshow has a page "Setting Up the Build Environment". Read this page and you'll find these libraries required: Strmiids.lib Quartz.lib ( not required if you don't call AMGetErrorText(), can be omitted in your case. ) If you don't know how to link these libraries, a simple way is provided in the following: 1. Click the Menu: (In Visual C++ 6.0) Tools -> Options -> Directories, and then choose item of the combobox below the text "Show Directories for" Library Files and set the path of these 2 libraries. (In Visual Studio .Net) Tools -> Options -> Projects -> VC++ Directories , and then choose item of the combobox below the text "Show Directories for" Library Files and set the path of these 2 libraries. 2. Add the following codes to where you want to include some files(Ex: You can add them in stdafx.h): #include "Dshow.h" #pragma comment ( lib, "Strmiids" ) #pragma comment ( lib, "Quartz" ) good luck!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups