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. Link error 2019

Link error 2019

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
15 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.
  • A Offline
    A Offline
    arun_pk
    wrote on last edited by
    #1

    Error 1 error LNK2019: unresolved external symbol _IID_IAMVideoControl referenced in function "public: long __thiscall StillCapture::Connect(struct IPin *)" (?Connect@StillCapture@@QAEJPAUIPin@@@Z) StillCapture.lib 1 DexCam1test i have method NewStillCapture() in StillCapture.lib. To call NewStillcapture() method IStillCapture.h is used. I am calling that method in my solution. But its giving the above mentioned Link error. Please help me to come out of this mess Thanks in advance

    C C 2 Replies Last reply
    0
    • A arun_pk

      Error 1 error LNK2019: unresolved external symbol _IID_IAMVideoControl referenced in function "public: long __thiscall StillCapture::Connect(struct IPin *)" (?Connect@StillCapture@@QAEJPAUIPin@@@Z) StillCapture.lib 1 DexCam1test i have method NewStillCapture() in StillCapture.lib. To call NewStillcapture() method IStillCapture.h is used. I am calling that method in my solution. But its giving the above mentioned Link error. Please help me to come out of this mess Thanks in advance

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Did you add StillCapture.lib in the "Additional Dependencies" option of your project settings ?

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      A 1 Reply Last reply
      0
      • A arun_pk

        Error 1 error LNK2019: unresolved external symbol _IID_IAMVideoControl referenced in function "public: long __thiscall StillCapture::Connect(struct IPin *)" (?Connect@StillCapture@@QAEJPAUIPin@@@Z) StillCapture.lib 1 DexCam1test i have method NewStillCapture() in StillCapture.lib. To call NewStillcapture() method IStillCapture.h is used. I am calling that method in my solution. But its giving the above mentioned Link error. Please help me to come out of this mess Thanks in advance

        C Offline
        C Offline
        Cool_Dev
        wrote on last edited by
        #3

        for IAMVideoControl interface, did u link to Strmiids.lib ?

        A 1 Reply Last reply
        0
        • C Cool_Dev

          for IAMVideoControl interface, did u link to Strmiids.lib ?

          A Offline
          A Offline
          arun_pk
          wrote on last edited by
          #4

          strmbasd.lib StillCapture.lib baseclasses\STRMBASE.lib THESE are the only dll's which we are linking

          C 1 Reply Last reply
          0
          • C Cedric Moonen

            Did you add StillCapture.lib in the "Additional Dependencies" option of your project settings ?

            Cédric Moonen Software developer
            Charting control [v3.0] OpenGL game tutorial in C++

            A Offline
            A Offline
            arun_pk
            wrote on last edited by
            #5

            yeah added. strmbasd.lib StillCapture.lib ..\baseclasses\STRMBASE.lib these are the libraries which we added in additional dependencies

            1 Reply Last reply
            0
            • A arun_pk

              strmbasd.lib StillCapture.lib baseclasses\STRMBASE.lib THESE are the only dll's which we are linking

              C Offline
              C Offline
              Cool_Dev
              wrote on last edited by
              #6

              Try adding Strmiids.lib and Quartz.lib also in additional dependencies. These are the import libraries for most of the codes declared in various headers of DirectShow.

              A 1 Reply Last reply
              0
              • C Cool_Dev

                Try adding Strmiids.lib and Quartz.lib also in additional dependencies. These are the import libraries for most of the codes declared in various headers of DirectShow.

                A Offline
                A Offline
                arun_pk
                wrote on last edited by
                #7

                where can refer those libraries i mean while adding the lib's through additional dependencies

                C 1 Reply Last reply
                0
                • A arun_pk

                  where can refer those libraries i mean while adding the lib's through additional dependencies

                  C Offline
                  C Offline
                  Cool_Dev
                  wrote on last edited by
                  #8

                  If you are using DirectX SDK, then these will be in DXSDK\Lib. If you are using Visual Studio 2005 or later, DirectShow is included in platform sdk and paths would be set in Visual Studio. So simply add the lib names only.

                  A 2 Replies Last reply
                  0
                  • C Cool_Dev

                    If you are using DirectX SDK, then these will be in DXSDK\Lib. If you are using Visual Studio 2005 or later, DirectShow is included in platform sdk and paths would be set in Visual Studio. So simply add the lib names only.

                    A Offline
                    A Offline
                    arun_pk
                    wrote on last edited by
                    #9

                    i am using visual studio 2008 so i added directly Strmiids.lib and Quartz.lib still same 7 errors :(

                    C 1 Reply Last reply
                    0
                    • A arun_pk

                      i am using visual studio 2008 so i added directly Strmiids.lib and Quartz.lib still same 7 errors :(

                      C Offline
                      C Offline
                      Cool_Dev
                      wrote on last edited by
                      #10

                      :( please post errors.

                      A 1 Reply Last reply
                      0
                      • C Cool_Dev

                        If you are using DirectX SDK, then these will be in DXSDK\Lib. If you are using Visual Studio 2005 or later, DirectShow is included in platform sdk and paths would be set in Visual Studio. So simply add the lib names only.

                        A Offline
                        A Offline
                        arun_pk
                        wrote on last edited by
                        #11

                        these are the seven errors Error 1 error LNK2019: unresolved external symbol _IID_IAMVideoControl referenced in function "public: long __thiscall StillCapture::Connect(struct IPin *)" (?Connect@StillCapture@@QAEJPAUIPin@@@Z) c:\Documents and Settings\binsb\Desktop\DexCam1test\DexCam1test\StillCapture.lib 1 DexCam1test Error 2 error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: int __thiscall CAMMsgEvent::WaitMsg(unsigned long)" (?WaitMsg@CAMMsgEvent@@QAEHK@Z) STRMBASE.lib DexCam1test Error 3 error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A) STRMBASE.lib DexCam1test Error 4 error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A) STRMBASE.lib DexCam1test Error 5 error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA) STRMBASE.lib DexCam1test Error 6 error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA) STRMBASE.lib DexCam1test Error 7 fatal error LNK1120: 4 unresolved externals C:\Documents and Settings\binsb\Desktop\DexCam1test\Debug\DexCam1test.exe DexCam1test

                        C 1 Reply Last reply
                        0
                        • C Cool_Dev

                          :( please post errors.

                          A Offline
                          A Offline
                          arun_pk
                          wrote on last edited by
                          #12

                          Error 1 error LNK2019: unresolved external symbol _IID_IAMVideoControl referenced in function "public: long __thiscall StillCapture::Connect(struct IPin *)" (?Connect@StillCapture@@QAEJPAUIPin@@@Z) c:\Documents and Settings\binsb\Desktop\DexCam1test\DexCam1test\StillCapture.lib 1 DexCam1test Error 2 error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: int __thiscall CAMMsgEvent::WaitMsg(unsigned long)" (?WaitMsg@CAMMsgEvent@@QAEHK@Z) STRMBASE.lib DexCam1test Error 3 error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A) STRMBASE.lib DexCam1test Error 4 error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A) STRMBASE.lib DexCam1test Error 5 error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA) STRMBASE.lib DexCam1test Error 6 error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA) STRMBASE.lib DexCam1test Error 7 fatal error LNK1120: 4 unresolved externals C:\Documents and Settings\binsb\Desktop\DexCam1test\Debug\DexCam1test.exe DexCam1test

                          1 Reply Last reply
                          0
                          • A arun_pk

                            these are the seven errors Error 1 error LNK2019: unresolved external symbol _IID_IAMVideoControl referenced in function "public: long __thiscall StillCapture::Connect(struct IPin *)" (?Connect@StillCapture@@QAEJPAUIPin@@@Z) c:\Documents and Settings\binsb\Desktop\DexCam1test\DexCam1test\StillCapture.lib 1 DexCam1test Error 2 error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: int __thiscall CAMMsgEvent::WaitMsg(unsigned long)" (?WaitMsg@CAMMsgEvent@@QAEHK@Z) STRMBASE.lib DexCam1test Error 3 error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A) STRMBASE.lib DexCam1test Error 4 error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A) STRMBASE.lib DexCam1test Error 5 error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA) STRMBASE.lib DexCam1test Error 6 error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA) STRMBASE.lib DexCam1test Error 7 fatal error LNK1120: 4 unresolved externals C:\Documents and Settings\binsb\Desktop\DexCam1test\Debug\DexCam1test.exe DexCam1test

                            C Offline
                            C Offline
                            Cool_Dev
                            wrote on last edited by
                            #13

                            are you developing filter? so u are not using directx sdk, instead windows sdk (vista or above) only?

                            A 2 Replies Last reply
                            0
                            • C Cool_Dev

                              are you developing filter? so u are not using directx sdk, instead windows sdk (vista or above) only?

                              A Offline
                              A Offline
                              arun_pk
                              wrote on last edited by
                              #14

                              filter .... :( we are using only windows sdk

                              1 Reply Last reply
                              0
                              • C Cool_Dev

                                are you developing filter? so u are not using directx sdk, instead windows sdk (vista or above) only?

                                A Offline
                                A Offline
                                arun_pk
                                wrote on last edited by
                                #15

                                IBaseFilter is what i can find in my project

                                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