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. error LNK2001

error LNK2001

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
7 Posts 5 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.
  • J Offline
    J Offline
    jokefake
    wrote on last edited by
    #1

    in trying to use the wave class in a program, i had this error message. I need help on how to resolve it. Thanks error LNK2001: unresolved external symbol "public: struct tWAVEFORMATEX __thiscall CWave::GetFormat(void)const " (?GetFormat@CWave@@QBE?AUtWAVEFORMATEX@@XZ)

    B S 2 Replies Last reply
    0
    • J jokefake

      in trying to use the wave class in a program, i had this error message. I need help on how to resolve it. Thanks error LNK2001: unresolved external symbol "public: struct tWAVEFORMATEX __thiscall CWave::GetFormat(void)const " (?GetFormat@CWave@@QBE?AUtWAVEFORMATEX@@XZ)

      B Offline
      B Offline
      Bob Stanneveld
      wrote on last edited by
      #2

      You probably need to add a source file to your project that will be compiled along with your code or you have to link to a library (see the linker settings). Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

      T 1 Reply Last reply
      0
      • B Bob Stanneveld

        You probably need to add a source file to your project that will be compiled along with your code or you have to link to a library (see the linker settings). Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        or just missed the header to include...


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        D 1 Reply Last reply
        0
        • T toxcct

          or just missed the header to include...


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          This would have caused a compiler, not linker, error.


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          T 1 Reply Last reply
          0
          • D David Crow

            This would have caused a compiler, not linker, error.


            "One must learn from the bite of the fire to leave it alone." - Native American Proverb

            T Offline
            T Offline
            toxcct
            wrote on last edited by
            #5

            hum, yes, you're right... sorry :| (5 for you :-D )


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

            1 Reply Last reply
            0
            • J jokefake

              in trying to use the wave class in a program, i had this error message. I need help on how to resolve it. Thanks error LNK2001: unresolved external symbol "public: struct tWAVEFORMATEX __thiscall CWave::GetFormat(void)const " (?GetFormat@CWave@@QBE?AUtWAVEFORMATEX@@XZ)

              S Offline
              S Offline
              SunKnight0
              wrote on last edited by
              #6

              Make sure you are including the appropriate .lib file in your Imports

              T 1 Reply Last reply
              0
              • S SunKnight0

                Make sure you are including the appropriate .lib file in your Imports

                T Offline
                T Offline
                toxcct
                wrote on last edited by
                #7

                there's no nee to say again what's been posted just before you... read the answers before posting a response. :(


                TOXCCT >>> GEII power
                [toxcct][VisualCalc]

                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