LNK errors

  • abczyx123987
    6th Sep 2011 Member 0 Permalink
    Well, both regex.h and pthread.h (there should also be a sched.h, too) should be in your Includes folder. (if you got this far, they're probably already there).

    In your Libraries folder, there should also be a regex.lib and a pthreadVC2.lib (among other .lib's).
    Also, in your project options (Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies), "(source)\Libraries\regex.lib" and "(source)\Libraries\pthreadVC2.lib" (replace (source) with the location of your source code) should be listed in there.

    Oh, and despite what your compiler tells you, you really don't need font/unpacker.c. (I compiled successfully without it.)
  • pilojo
    6th Sep 2011 Member 0 Permalink
    @abczyx123987 (View Post)
    lolno. regex.h and pthread.h need to be acquired differently. There should be a link on the wiki somewhere with regex and pthread.
  • PizzaPlatypus
    6th Sep 2011 Member 0 Permalink
    It's all there and I've done all that this is what I get:

    1>------ Build started: Project: TPT serious mod, Configuration: Debug Win32 ------
    1>graphics.obj : error LNK2005: _font_data already defined in unpacker.obj
    1>graphics.obj : error LNK2005: _font_ptrs already defined in unpacker.obj
    1>main.obj : error LNK2005: _tag already defined in unpacker.obj
    1>SDLmain.lib(SDL_win32_main.obj) : error LNK2005: _main already defined in unpacker.obj
    1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>C:\Users\PizzaPlatypus\Documents\TPT latest mod\FacialTurd-The-Powder-Toy-a24307a\Debug\TPT serious mod.exe : fatal error LNK1169: one or more multiply defined symbols found
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • pilojo
    6th Sep 2011 Member 0 Permalink
    Unpacker must be there.
  • PizzaPlatypus
    6th Sep 2011 Member 0 Permalink
    It is but when I delete it it says that it's missing and stops compiling.
  • abczyx123987
    6th Sep 2011 Member 0 Permalink
    Right-click unpacker.c, click "exclude from project", recompile?
  • PizzaPlatypus
    6th Sep 2011 Member 0 Permalink
    YYYYYYEEEEESESSSSS
    did IT!!!