'old_vid' & 'tv'

  • tommig
    6th Aug 2011 Member 0 Permalink
    Hi again

    whilst compiling an unmodified source of V52 in vis studio, I've come across a couple of errors
    first, something about 'tv' in powder.c

    The error is as follows:
    1>facialturd-the-powder-toy-9c2b3bb\src\powder.c(644): error C2082: redefinition of formal parameter 't'
    1>facialturd-the-powder-toy-9c2b3bb\src\powder.c(644): error C2065: 'tv' : undeclared identifier
    1>facialturd-the-powder-toy-9c2b3bb\src\powder.c(645): error C2065: 'tv' : undeclared identifier

    secondly, in interface.c:
    1>facialturd-the-powder-toy-9c2b3bb\src\interface.c(3313): error C2065: 'old_vid' : undeclared identifier
    1>facialturd-the-powder-toy-9c2b3bb\src\interface.c(3342): error C2065: 'old_vid' : undeclared identifier
    -------
    1>facialturd-the-powder-toy-9c2b3bb\src\interface.c(3500): error C2065: 'old_vid' : undeclared identifier
    ------
    1>facialturd-the-powder-toy-9c2b3bb\src\interface.c(3507): error C2065: 'old_vid' : undeclared identifier
    -----
    1>facialturd-the-powder-toy-9c2b3bb\src\interface.c(3571): error C2065: 'old_vid' : undeclared identifier
    ----
    1>facialturd-the-powder-toy-9c2b3bb\src\interface.c(3778): error C2065: 'old_vid' : undeclared identifier
    ---
    1>facialturd-the-powder-toy-9c2b3bb\src\interface.c(3807): error C2065: 'old_vid' : undeclared identifier

    all help appreciated

    Tommig
  • Pilihp64
    6th Aug 2011 Developer 0 Permalink
    These are just simple typos which should be fixed...
    Actually the 'tv' one is fixed, you can update your source for that. EDIT i will just post the fix anyway, one sec.
    a few lines above 644, there are two definitions of the function, make sure they both have 'tv' at the end and not 't'
    inline int create_part(int p, int x, int y, int tv)

    The old_vid is a simple fix as well, move this line (3313)

    pixel *old_vid=(pixel *)calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE);

    up a line or two, so it looks something like this instead.

    pixel *old_vid=(pixel *)calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE);
    viewcountbuffer[0] = 0;
  • tommig
    6th Aug 2011 Member 0 Permalink
    That solved thoses errors, but I can't get these!
    1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
    1>acid.obj : error LNK2019: unresolved external symbol _parts_avg referenced in function _update_ACID
    1>btry.obj : error LNK2001: unresolved external symbol _parts_avg
    1>sprk.obj : error LNK2001: unresolved external symbol _parts_avg
    1>swch.obj : error LNK2001: unresolved external symbol _parts_avg
    1>powder.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>sing.obj : error LNK2019: unresolved external symbol _restrict_flt referenced in function _update_SING
    1>uran.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>graphics.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>interface.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>frzw.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>ice.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>neut.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>pyro.obj : error LNK2001: unresolved external symbol _restrict_flt
    1>prti.obj : error LNK2019: unresolved external symbol _orbitalparts_set referenced in function _update_PRTI
    1>prto.obj : error LNK2001: unresolved external symbol _orbitalparts_set
    1>prti.obj : error LNK2019: unresolved external symbol _orbitalparts_get referenced in function _update_PRTI
    1>prto.obj : error LNK2001: unresolved external symbol _orbitalparts_get
    1>graphics.obj : error LNK2001: unresolved external symbol _orbitalparts_get
    1>graphics.obj : error LNK2019: unresolved external symbol _clamp_flt referenced in function _draw_air
    1>interface.obj : error LNK2001: unresolved external symbol _clamp_flt
    1>graphics.obj : error LNK2019: unresolved external symbol _isign referenced in function _draw_line
    1>C:\Users\User\Documents\powder toy\source codes\The-Powder-Toy-51.0\Release\Tommig's mod V (52.0 source).exe : fatal error LNK1120: 6 unresolved externals

    I had these for weeks, I don't know what to do with it! Any ideas