Link 2019 problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huzzaa
    New Member
    • Apr 2007
    • 9

    #1

    Link 2019 problems

    Code:
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Employee::nameDisplay(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,float)" (?nameDisplay@Employee@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M@Z) referenced in function _main
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: float __thiscall Employee::getSalary(void)" (?getSalary@Employee@@QAEMXZ) referenced in function _main
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Employee::setSalary(float)" (?setSalary@Employee@@QAEXM@Z) referenced in function _main
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Employee::getLastName(void)" (?getLastName@Employee@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function _main
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Employee::getFirstName(void)" (?getFirstName@Employee@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function _main
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Employee::setLastName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?setLastName@Employee@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Employee::setFirstName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?setFirstName@Employee@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: __thiscall Employee::Employee(float)" (??0Employee@@QAE@M@Z) referenced in function _main
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    What is the code that is causing this error?

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      It looks like your code that's outside the main file was not part of the build.

      Comment

      Working...