It's giving me crap in VC++ too!

  • Videogamer555
    10th Apr 2011 Member 0 Permalink
    ------ Build started: Project: ThePowderToy, Configuration: Debug Win32 ------
    MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
    acid.obj : error LNK2019: unresolved external symbol _parts_avg referenced in function _update_ACID
    btry.obj : error LNK2001: unresolved external symbol _parts_avg
    sprk.obj : error LNK2001: unresolved external symbol _parts_avg
    swch.obj : error LNK2001: unresolved external symbol _parts_avg
    uran.obj : error LNK2019: unresolved external symbol _restrict_flt referenced in function _update_URAN
    graphics.obj : error LNK2001: unresolved external symbol _restrict_flt
    interface.obj : error LNK2001: unresolved external symbol _restrict_flt
    powder.obj : error LNK2001: unresolved external symbol _restrict_flt
    frzw.obj : error LNK2001: unresolved external symbol _restrict_flt
    ice.obj : error LNK2001: unresolved external symbol _restrict_flt
    pyro.obj : error LNK2001: unresolved external symbol _restrict_flt
    sing.obj : error LNK2001: unresolved external symbol _restrict_flt
    prti.obj : error LNK2019: unresolved external symbol _orbitalparts_set referenced in function _update_PRTI
    prto.obj : error LNK2001: unresolved external symbol _orbitalparts_set
    prti.obj : error LNK2019: unresolved external symbol _orbitalparts_get referenced in function _update_PRTI
    prto.obj : error LNK2001: unresolved external symbol _orbitalparts_get
    graphics.obj : error LNK2001: unresolved external symbol _orbitalparts_get
    graphics.obj : error LNK2019: unresolved external symbol _clamp_flt referenced in function _draw_air
    graphics.obj : error LNK2019: unresolved external symbol _isign referenced in function _draw_line
    misc.obj : error LNK2019: unresolved external symbol __imp__regfree referenced in function _sregexp
    misc.obj : error LNK2019: unresolved external symbol __imp__regexec referenced in function _sregexp
    misc.obj : error LNK2019: unresolved external symbol __imp__regcomp referenced in function _sregexp
    C:\ThePowderToy\Debug\ThePowderToy.exe : fatal error LNK1120: 9 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    What's going on now?
  • Merbo
    10th Apr 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    Go into the folder, go into Release or Debug \ bin and delete every last *.obj file.
    This will start a clean compile.
  • Videogamer555
    10th Apr 2011 Member 0 Permalink
    I don't have a bin folder, just a debug folder.
    And I still get this error at the end:

    MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
    acid.obj : error LNK2019: unresolved external symbol _parts_avg referenced in function _update_ACID
    btry.obj : error LNK2001: unresolved external symbol _parts_avg
    sprk.obj : error LNK2001: unresolved external symbol _parts_avg
    swch.obj : error LNK2001: unresolved external symbol _parts_avg
    uran.obj : error LNK2019: unresolved external symbol _restrict_flt referenced in function _update_URAN
    graphics.obj : error LNK2001: unresolved external symbol _restrict_flt
    interface.obj : error LNK2001: unresolved external symbol _restrict_flt
    powder.obj : error LNK2001: unresolved external symbol _restrict_flt
    frzw.obj : error LNK2001: unresolved external symbol _restrict_flt
    ice.obj : error LNK2001: unresolved external symbol _restrict_flt
    pyro.obj : error LNK2001: unresolved external symbol _restrict_flt
    sing.obj : error LNK2001: unresolved external symbol _restrict_flt
    prti.obj : error LNK2019: unresolved external symbol _orbitalparts_set referenced in function _update_PRTI
    prto.obj : error LNK2001: unresolved external symbol _orbitalparts_set
    prti.obj : error LNK2019: unresolved external symbol _orbitalparts_get referenced in function _update_PRTI
    prto.obj : error LNK2001: unresolved external symbol _orbitalparts_get
    graphics.obj : error LNK2001: unresolved external symbol _orbitalparts_get
    graphics.obj : error LNK2019: unresolved external symbol _clamp_flt referenced in function _draw_air
    graphics.obj : error LNK2019: unresolved external symbol _isign referenced in function _draw_line
    misc.obj : error LNK2019: unresolved external symbol __imp__regfree referenced in function _sregexp
    misc.obj : error LNK2019: unresolved external symbol __imp__regexec referenced in function _sregexp
    misc.obj : error LNK2019: unresolved external symbol __imp__regcomp referenced in function _sregexp
    C:\ThePowderToy\Debug\ThePowderToy.exe : fatal error LNK1120: 9 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    (as well as a TON of complaints from the compiler about loss of precision converting from float to int, not all possible control paths leading to an output, claims of depreciated functions, and that kind of stuff).
  • Merbo
    10th Apr 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    derpderpderpderpderp.
    Debug\
    delete *.obj
    rebuild.
    It looks like you're missing something from the linker, also. So make sure you have everything >.>
    Pastebin errors from now on.
  • Pilihp64
    10th Apr 2011 Developer 0 Permalink
    Yes those are all linker errors.
    There's no need to manually delete the .obj files, there's a "clean project" or something that does exactly that. Also you will still need python installed if you want to compile the new console.
  • Videogamer555
    10th Apr 2011 Member 0 Permalink
    I've cleaned and recompiled numerous times. Error still does not go away. I need trouble shooting for my specific problem, not just some generic "delete all the files and start over" fix.
  • pilojo
    10th Apr 2011 Member 0 Permalink
    @cracker64 (View Post)
    I've tried clean project, it doesn't delete the *.obj files from the times I've tried.
  • Videogamer555
    10th Apr 2011 Member 0 Permalink
    This may be one of the things that causes the other failures.
    MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library

    What does this mean and how do I fix it?
  • pilojo
    10th Apr 2011 Member 0 Permalink
    @cracker64
    He he, remember that error with me? I can't remember how to fix it but, I'm sure you do.
  • Neospector
    10th Apr 2011 Member 0 Permalink

    Videogamer555:

    This may be one of the things that causes the other failures.
    MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library

    What does this mean and how do I fix it?

    Warnings mean nothing. Ignore the warnings and focus on the errors.