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. Simple question

Simple question

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

    does anyone know why this linking error is happening: error LNK2005: "public: __thiscall CMove::CMove(int &,int &)" (??0CMove@@QAE@AAH0@Z) already defined in Computer.obj i have define my inclusion guards and everything but this error still keeps coming up. can anyone tell me wats the cause of this linking error... :( well, anyways, thank for you help :) john:confused:

    R M 2 Replies Last reply
    0
    • J John Cruz

      does anyone know why this linking error is happening: error LNK2005: "public: __thiscall CMove::CMove(int &,int &)" (??0CMove@@QAE@AAH0@Z) already defined in Computer.obj i have define my inclusion guards and everything but this error still keeps coming up. can anyone tell me wats the cause of this linking error... :( well, anyways, thank for you help :) john:confused:

      R Offline
      R Offline
      Rama Krishna Vavilala
      wrote on last edited by
      #2

      Make it inline inline CMove::CMove(int&, int& ) { }

      1 Reply Last reply
      0
      • J John Cruz

        does anyone know why this linking error is happening: error LNK2005: "public: __thiscall CMove::CMove(int &,int &)" (??0CMove@@QAE@AAH0@Z) already defined in Computer.obj i have define my inclusion guards and everything but this error still keeps coming up. can anyone tell me wats the cause of this linking error... :( well, anyways, thank for you help :) john:confused:

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #3

        CMove::CMove must be defined in your code twice. The error suggests that it is in Computer.cpp and and in another file. Where is the CMove constructor body, is it in Computer.cpp? If you are certain it isn't defined twice, try doing a rebuild all. Michael :-)

        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