error LNK2019

  • GreenFireDragon
    5th May 2013 Member 0 Permalink

    I updated it in visual and when i try to build it I get this errors:

     

    Error 2 error LNK2019: unresolved external symbol "public: __thiscall Element_TUGN::Element_TUGN(void)" (??0Element_TUGN@@QAE@XZ) referenced in function "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ)

    ...\TPT\ElementClasses.obj Powder

     

    Error 3 error LNK2019: unresolved external symbol "public: virtual __thiscall Element_TUGN::~Element_TUGN(void)" (??1Element_TUGN@@UAE@XZ) referenced in function "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ)

    ...\TPT\ElementClasses.obj Powder

     

    Error 4 error LNK2019: unresolved external symbol "public: __thiscall Element_PSNS::Element_PSNS(void)" (??0Element_PSNS@@QAE@XZ) referenced in function "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ)

    ...\TPT\ElementClasses.obj Powder

     

    Error 5 error LNK2019: unresolved external symbol "public: virtual __thiscall Element_PSNS::~Element_PSNS(void)" (??1Element_PSNS@@UAE@XZ) referenced in function "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ) ...\TPT\ElementClasses.obj Powder


    Error 6 error LNK2019: unresolved external symbol _luaopen_socket_core referenced in function "public: __thiscall LuaScriptInterface::LuaScriptInterface(class GameController *,class GameModel *)" (??0LuaScriptInterface@@QAE@PAVGameController@@PAVGameModel@@@Z) ...\TPT\LuaScriptInterface.obj Powder


    Error 7 error LNK2019: unresolved external symbol "void __cdecl luaopen_socket(struct lua_State *)" (?luaopen_socket@@YAXPAUlua_State@@@Z) referenced in function "public: __thiscall LuaScriptInterface::LuaScriptInterface(class GameController *,class GameModel *)" (??0LuaScriptInterface@@QAE@PAVGameController@@PAVGameModel@@@Z) ...\TPT\LuaScriptInterface.obj Powder


    Error 8 error LNK1120: 6 unresolved externals ...\TPT\Build\Powder.exe Powder

  • Simon
    5th May 2013 Administrator 0 Permalink
    Those errors are because the necessary files have not been added to your Visual Studio Project
    The files that contain those functions were recently added to the repository, In the Visual Studio Project explorer, click the "Show all files" button, and ensure the following files are added.
    src\simulation\elements\TUGN.cpp
    src\simulation\elements\PSNS.cpp
    And all the 'c' and 'cpp' files in src\socket
  • GreenFireDragon
    5th May 2013 Member 0 Permalink

    Thanks it works, I did not know that VS doesn't add new files.