Stupid link errors!

  • tommig
    12th Aug 2011 Member 0 Permalink
    Hello peoples

    I'm still unable to compile this source, I've tried endlessly with multiple sources, yet every time I get the following errors:

    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've tried everything I can think of to see if I can solve the problem, but it won't work.
    I've;

    Cleaned the project, twice
    Taken out all the setting up I've done and re-entered it.
    Tried in Debug and release
    Installed lua


    What else is possible that might solve my error. Is it possible that I'm missing some .lib files or they are out of date? If so please help to the best you can!

    Thanks
    Tommig
  • pilojo
    12th Aug 2011 Member 0 Permalink
    @tommig (View Post)
    PSST, visual studio hardly works... use code::blocks. Takes too much work with visual studio.
  • CaptianKirk
    12th Aug 2011 Member 0 Permalink
    @pilojo
    hmmmm it wouls seem on one likes microsoft.....

    @tommig
    and it would appear that you are missing files or have currupted files, based on the errors
  • jacksonmj
    12th Aug 2011 Developer 0 Permalink
    Remove the word "_inline" before the source code for parts_avg, restrict_flt etc.
  • tommig
    12th Aug 2011 Member 0 Permalink
    when I attempt to open acid.obj it tells me "There is no editor available for C:\users\documents ect. make sure the application type for the file is installed"

    Confused
  • cctvdude99
    12th Aug 2011 Member 0 Permalink
    @tommig
    Download and install Code::Blocks, set it up, job done.
  • tommig
    12th Aug 2011 Member 0 Permalink
    @cctvdude99 (View Post)
    No! I will continue to use Visual Studio!
  • jacksonmj
    12th Aug 2011 Developer 0 Permalink
    Source code is in .c files, not object files.

    Edit: graphics.c, misc.c, powder.c are the files you need to change
  • tommig
    12th Aug 2011 Member 0 Permalink
    So, remove the word _inline in acid.c ect.! job done!

    I hope!
  • tommig
    12th Aug 2011 Member 0 Permalink
    @jacksonmj (View Post)
    YES!!!! Finally! I've compiled succesfully!
    Thanks for all the help!!!

    @cctvdude99 (View Post)
    @pilojo (View Post)
    Don't need to! :P

    YEA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!