Missing .libs?

  • tommig
    16th Jul 2011 Member 0 Permalink
    Hello people!
    I appear to have some link errors, and assume, since all my.libs are correctly linked, that there are missing files from my project.
    I have the following.
    SDL
    SDLmain
    Libbz2
    Regex
    PthreadVC2

    Are there any I'm missing?
    Tommig
  • Pilihp64
    16th Jul 2011 Developer 0 Permalink
    what errors exactly?

    If you are compiling with lua console, you will need lua5.1 installed and linked.
    Edited by cracker64, 2011-07-14 23:42:23
  • tommig
    16th Jul 2011 Member 0 Permalink
    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>misc.obj : error LNK2019: unresolved external symbol _fmax referenced in function _RGB_to_HSV
    1>misc.obj : error LNK2019: unresolved external symbol _fmin referenced in function _RGB_to_HSV
    1>C:\Users\User\Documents\powder toy\source codes\The-Powder-Toy-50.6\Debug\Tommig's Powder Toy mod V (50.6 source).exe : fatal error LNK1120: 8 unresolved externals

    These... (sorry, too tired to use pastebin atm!)

    No, there is no lua
  • tommig
    16th Jul 2011 Member 0 Permalink
    Please Help!
  • triclops200
    16th Jul 2011 Former Staff 0 Permalink
    Try cleaning then rebuilding
    Edited by triclops200, 2011-07-17 23:53:36
  • me4502
    16th Jul 2011 Member 0 Permalink
    @triclops200 (View Post)
    I was going to suggest that :(
  • jacksonmj
    16th Jul 2011 Developer 0 Permalink
    Remove all the inlines in the .c files.
    For example, replace:
    #if defined(WIN32) && !defined(__GNUC__)
    _inline void part_change_type(int i, int x, int y, int t)
    #else
    inline void part_change_type(int i, int x, int y, int t)
    #endif

    with:
    void part_change_type(int i, int x, int y, int t)

    Also, add this to defines.h:
    #if defined(WIN32) && !defined(__GNUC__)
    #define fmin min
    #define fminf min
    #define fmax max
    #define fmaxf max
    #endif
    Edited by jacksonmj, 2011-07-18 00:10:53
  • me4502
    16th Jul 2011 Member 0 Permalink
    @jacksonmj (View Post)
    Why are the inclines even there.... I've always wondered that...