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. Can someone take a look at this project, getting linker errors, I've done everything to fix

Can someone take a look at this project, getting linker errors, I've done everything to fix

Scheduled Pinned Locked Moved C / C++ / MFC
comhelp
7 Posts 4 Posters 1 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.
  • U Offline
    U Offline
    User 11260559
    wrote on last edited by
    #1

    Basically code is from previous project my tutor helped me develop unfortunately I can no longer contact him, but I'm working on similar project which I did a simple object that moves around on screen, I pasted a pre-existing Direct X tool kit that my teacher gave me and imported it in as a project and did the linker with my other project but it's giving me the linker errors. Please kindly fix this there's no coding errors, also if possible please explain with screenshots what was wrong so I would remember for next time, thank you. http://www.megafileupload.com/9c1m/P2BallGamev2.zip

    P 1 Reply Last reply
    0
    • U User 11260559

      Basically code is from previous project my tutor helped me develop unfortunately I can no longer contact him, but I'm working on similar project which I did a simple object that moves around on screen, I pasted a pre-existing Direct X tool kit that my teacher gave me and imported it in as a project and did the linker with my other project but it's giving me the linker errors. Please kindly fix this there's no coding errors, also if possible please explain with screenshots what was wrong so I would remember for next time, thank you. http://www.megafileupload.com/9c1m/P2BallGamev2.zip

      P Online
      P Online
      PIEBALDconsult
      wrote on last edited by
      #2

      No. Please at least post these "linker errors" of which you speak. Plus which compiler, OS, etc. you are using.

      U 1 Reply Last reply
      0
      • P PIEBALDconsult

        No. Please at least post these "linker errors" of which you speak. Plus which compiler, OS, etc. you are using.

        U Offline
        U Offline
        User 11260559
        wrote on last edited by
        #3

        1>------ Build started: Project: P2BallGame, Configuration: Debug Win32 ------
        1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::SpriteBatch::SpriteBatch(struct ID3D11DeviceContext *)" (??0SpriteBatch@DirectX@@QAE@PAUID3D11DeviceContext@@@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
        1>PlayerBall.obj : error LNK2001: unresolved external symbol "public: __thiscall DirectX::SpriteBatch::SpriteBatch(struct ID3D11DeviceContext *)" (??0SpriteBatch@DirectX@@QAE@PAUID3D11DeviceContext@@@Z)
        1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::CommonStates::CommonStates(struct ID3D11Device *)" (??0CommonStates@DirectX@@QAE@PAUID3D11Device@@@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
        1>PlayerBall.obj : error LNK2001: unresolved external symbol "public: __thiscall DirectX::CommonStates::CommonStates(struct ID3D11Device *)" (??0CommonStates@DirectX@@QAE@PAUID3D11Device@@@Z)
        1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::SpriteFont::SpriteFont(struct ID3D11Device *,wchar_t const *)" (??0SpriteFont@DirectX@@QAE@PAUID3D11Device@@PB_W@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
        1>SpriteResources.obj : error LNK2019: unresolved external symbol "long __cdecl DirectX::CreateWICTextureFromFile(struct ID3D11Device *,struct ID3D11DeviceContext *,wchar_t const *,struct ID3D11Resource * *,struct ID3D11ShaderResourceView * *,unsigned int)" (?CreateWICTextureFromFile@DirectX@@YAJPAUID3D11Device@@PAUID3D11DeviceContext@@PB_WPAPAUID3D11Resource@@PAPAUID3D11ShaderResourceView@@I@Z) referenced in function "public: void __thiscall P2BallGame::SpriteResources::LoadTexture(class std::basic_string,class std::allocator >)" (?LoadTexture@SpriteResources@P2BallGame@@QAEXV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z)
        1>PlayerBall.obj : error LNK2001: unresolved external symbol "long __cdecl DirectX::

        D CPalliniC 2 Replies Last reply
        0
        • U User 11260559

          1>------ Build started: Project: P2BallGame, Configuration: Debug Win32 ------
          1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::SpriteBatch::SpriteBatch(struct ID3D11DeviceContext *)" (??0SpriteBatch@DirectX@@QAE@PAUID3D11DeviceContext@@@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
          1>PlayerBall.obj : error LNK2001: unresolved external symbol "public: __thiscall DirectX::SpriteBatch::SpriteBatch(struct ID3D11DeviceContext *)" (??0SpriteBatch@DirectX@@QAE@PAUID3D11DeviceContext@@@Z)
          1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::CommonStates::CommonStates(struct ID3D11Device *)" (??0CommonStates@DirectX@@QAE@PAUID3D11Device@@@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
          1>PlayerBall.obj : error LNK2001: unresolved external symbol "public: __thiscall DirectX::CommonStates::CommonStates(struct ID3D11Device *)" (??0CommonStates@DirectX@@QAE@PAUID3D11Device@@@Z)
          1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::SpriteFont::SpriteFont(struct ID3D11Device *,wchar_t const *)" (??0SpriteFont@DirectX@@QAE@PAUID3D11Device@@PB_W@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
          1>SpriteResources.obj : error LNK2019: unresolved external symbol "long __cdecl DirectX::CreateWICTextureFromFile(struct ID3D11Device *,struct ID3D11DeviceContext *,wchar_t const *,struct ID3D11Resource * *,struct ID3D11ShaderResourceView * *,unsigned int)" (?CreateWICTextureFromFile@DirectX@@YAJPAUID3D11Device@@PAUID3D11DeviceContext@@PB_WPAPAUID3D11Resource@@PAPAUID3D11ShaderResourceView@@I@Z) referenced in function "public: void __thiscall P2BallGame::SpriteResources::LoadTexture(class std::basic_string,class std::allocator >)" (?LoadTexture@SpriteResources@P2BallGame@@QAEXV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z)
          1>PlayerBall.obj : error LNK2001: unresolved external symbol "long __cdecl DirectX::

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          From the first line, it looks you need the DirectXTK[^]. I see no prebuilt binaries there, probably you have to build it yourself from the sources.

          In testa che avete, signor di Ceprano?

          U 1 Reply Last reply
          0
          • U User 11260559

            1>------ Build started: Project: P2BallGame, Configuration: Debug Win32 ------
            1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::SpriteBatch::SpriteBatch(struct ID3D11DeviceContext *)" (??0SpriteBatch@DirectX@@QAE@PAUID3D11DeviceContext@@@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
            1>PlayerBall.obj : error LNK2001: unresolved external symbol "public: __thiscall DirectX::SpriteBatch::SpriteBatch(struct ID3D11DeviceContext *)" (??0SpriteBatch@DirectX@@QAE@PAUID3D11DeviceContext@@@Z)
            1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::CommonStates::CommonStates(struct ID3D11Device *)" (??0CommonStates@DirectX@@QAE@PAUID3D11Device@@@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
            1>PlayerBall.obj : error LNK2001: unresolved external symbol "public: __thiscall DirectX::CommonStates::CommonStates(struct ID3D11Device *)" (??0CommonStates@DirectX@@QAE@PAUID3D11Device@@@Z)
            1>SpriteResources.obj : error LNK2019: unresolved external symbol "public: __thiscall DirectX::SpriteFont::SpriteFont(struct ID3D11Device *,wchar_t const *)" (??0SpriteFont@DirectX@@QAE@PAUID3D11Device@@PB_W@Z) referenced in function "public: __thiscall P2BallGame::SpriteResources::SpriteResources(class std::shared_ptr)" (??0SpriteResources@P2BallGame@@QAE@V?$shared_ptr@VDeviceResources@DX@@@std@@@Z)
            1>SpriteResources.obj : error LNK2019: unresolved external symbol "long __cdecl DirectX::CreateWICTextureFromFile(struct ID3D11Device *,struct ID3D11DeviceContext *,wchar_t const *,struct ID3D11Resource * *,struct ID3D11ShaderResourceView * *,unsigned int)" (?CreateWICTextureFromFile@DirectX@@YAJPAUID3D11Device@@PAUID3D11DeviceContext@@PB_WPAPAUID3D11Resource@@PAPAUID3D11ShaderResourceView@@I@Z) referenced in function "public: void __thiscall P2BallGame::SpriteResources::LoadTexture(class std::basic_string,class std::allocator >)" (?LoadTexture@SpriteResources@P2BallGame@@QAEXV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z)
            1>PlayerBall.obj : error LNK2001: unresolved external symbol "long __cdecl DirectX::

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

            See here.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            1 Reply Last reply
            0
            • CPalliniC CPallini

              From the first line, it looks you need the DirectXTK[^]. I see no prebuilt binaries there, probably you have to build it yourself from the sources.

              U Offline
              U Offline
              User 11260559
              wrote on last edited by
              #6

              Correct, I built it myself, can you show me or guide me on how to build it?, I need the simplemath.h files also included.

              CPalliniC 1 Reply Last reply
              0
              • U User 11260559

                Correct, I built it myself, can you show me or guide me on how to build it?, I need the simplemath.h files also included.

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #7

                I would read the provided 'documentation', that is the Readme.txt file.

                In testa che avete, signor di Ceprano?

                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