Huge VIBR error

  • tommig
    11th Nov 2012 Member 0 Permalink

    Hi!

    Just set everything up for the first time in V84, and when I compiled, I was left with a huge string of errors related to Vibranium. I checked the file, and the first 50 or so line were all red. I get the feeling the error sources from line 3. Here is the error file: http://pastebin.com/mTP5ry2K

    and here's the element file: http://pastebin.com/8mtMG9TT

     

    Thanks again

    Tommig

  • mniip
    11th Nov 2012 Developer 0 Permalink
    rerun the generator.py
  • tommig
    11th Nov 2012 Member 0 Permalink

    How? (Windows & MSVC)

  • jacob1
    11th Nov 2012 Developer 0 Permalink
    @tommig (View Post)
    scons does it automatically, if not using that, I don't know how... just use these, I ran generator.py once, and add everything in manually now until I can run it again. It takes hundreds of arguments (166) + (10-20 something more), and python to run.
  • tommig
    12th Nov 2012 Member 0 Permalink

    Ok, thanks for that. Got it!

    And then this happens:

    1>SDLmain.lib(SDL_win32_main.obj) : error LNK2005: _main already defined in test.obj
    1>LuaScriptInterface.obj : error LNK2019: unresolved external symbol "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ) referenced in function "private: static int __cdecl LuaScriptInterface::elements_loadDefault(struct lua_State *)" (?elements_loadDefault@LuaScriptInterface@@CAHPAUlua_State@@@Z)
    1>GameSave.obj : error LNK2001: unresolved external symbol "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ)
    1>Simulation.obj : error LNK2001: unresolved external symbol "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ)
    1>Simulation.obj : error LNK2019: unresolved external symbol "class std::vector<class SimTool *,class std::allocator<class SimTool *> > __cdecl GetTools(void)" (?GetTools@@YA?AV?$vector@PAVSimTool@@V?$allocator@PAVSimTool@@@std@@@std@@XZ) referenced in function "public: __thiscall Simulation::Simulation(void)" (??0Simulation@@QAE@XZ)
    1>test.obj : error LNK2019: unresolved external symbol _trap_Print referenced in function _main
    1>C:\Users\User\Documents\powder toy\source codes\PowderToypp-master\build\Tommig's Organic Chemistry Mod.exe : fatal error LNK1120: 3 unresolved externals

  • jacob1
    12th Nov 2012 Developer 0 Permalink
    @tommig (View Post)
    for the first error, remove test.c from the list of files in your project. I normally delete the tptlibrary folder before I start, which also fixes it.

    For the others, it doesn't sound like you are including ElementClasses.cpp or ToolClasses.cpp in the project. Both of those are generated files.
  • tommig
    12th Nov 2012 Member 0 Permalink

    @jacob1 (View Post)

    Thank you! All works now!