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. linking error!

linking error!

Scheduled Pinned Locked Moved C / C++ / MFC
questiondebugginghelp
5 Posts 4 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
    alias0018
    wrote on last edited by
    #1

    :confused:Hi everyong! there are some errors when linking as: Linking... DSRecord.obj : error LNK2001: unresolved external symbol _DSDEVID_DefaultCapture DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundCaptureBuffer8 DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundNotify Debug/MyDS.exe : fatal error LNK1120: 3 unresolved externals I know that maybe some .lib file haven't been added to the project,but i do have linked "dsound.h" and "dsound.lib" How can I solve it? Thank you so much!

    G L 2 Replies Last reply
    0
    • A alias0018

      :confused:Hi everyong! there are some errors when linking as: Linking... DSRecord.obj : error LNK2001: unresolved external symbol _DSDEVID_DefaultCapture DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundCaptureBuffer8 DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundNotify Debug/MyDS.exe : fatal error LNK1120: 3 unresolved externals I know that maybe some .lib file haven't been added to the project,but i do have linked "dsound.h" and "dsound.lib" How can I solve it? Thank you so much!

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      its a bit hard to jump in on this when you've posted very little .. ok, if you can guarantee that those 3 functions are in dsound.lib (ie, they are declared in the header file dsound.h), then, the linker isnt finding dsound.lib - there are a number of ways to make sure it finds it .. 1) (MSVC 6) select tools -> options -> directories, (show directories for [library files]), add an entry for the directory where dsound.lib is or 2) select project -> settings -> link [category = input] add the path to the 'Additional Library path' box ... if those functions are NOT in dsound.lib, then you have to figure out where they come from, and (possibly) include that library .. if you can find a working example that comes with a workspace, you can often go though the settings and figure out 'what else' you need If its a COM component, the method will be different, sorry - you may need to do whats known as 'importing a type library' using a #import directive hope this helps a little 'g'

      1 Reply Last reply
      0
      • A alias0018

        :confused:Hi everyong! there are some errors when linking as: Linking... DSRecord.obj : error LNK2001: unresolved external symbol _DSDEVID_DefaultCapture DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundCaptureBuffer8 DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundNotify Debug/MyDS.exe : fatal error LNK1120: 3 unresolved externals I know that maybe some .lib file haven't been added to the project,but i do have linked "dsound.h" and "dsound.lib" How can I solve it? Thank you so much!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        These are DirectX functions - you do have the DriectX SDK installed? The tigress is here :-D

        G 1 Reply Last reply
        0
        • L Lost User

          These are DirectX functions - you do have the DriectX SDK installed? The tigress is here :-D

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          Thanks for this, tigress - they wernt functions I was aware of - glad someone else out there knew where they came from 'G'

          A 1 Reply Last reply
          0
          • G Garth J Lancaster

            Thanks for this, tigress - they wernt functions I was aware of - glad someone else out there knew where they came from 'G'

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

            Thank you very much. I do have installed DirectX SDK,and I do have linked them. I have resolved it the reason is I lefted a .lib file that is "Dxguid.lib" You may use 'dsound.h',dxguid.h'winmm.h'dxerr8.h'. Thank you all the same!

            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