bchandark: Could you tell me what changed in the latest version of the code that I need to change something to my build environment? On VS2008 and VS2010 I get
1>Linking... 1>powder.obj : error LNK2001: unresolved external symbol _drawpixel 1>powder.obj : error LNK2001: unresolved external symbol _xor_rect 1>powder.obj : error LNK2001: unresolved external symbol _drawdots 1>powder.obj : error LNK2001: unresolved external symbol _draw_line 1>powder.obj : error LNK2001: unresolved external symbol _drawblob 1>powder.obj : error LNK2001: unresolved external symbol _draw_air 1>powder.obj : error LNK2001: unresolved external symbol _textwidthx 1>powder.obj : error LNK2001: unresolved external symbol _textwidth 1>powder.obj : error LNK2001: unresolved external symbol _drawtextmax 1>powder.obj : error LNK2001: unresolved external symbol _clearrect 1>powder.obj : error LNK2001: unresolved external symbol _draw_tool_xy 1>powder.obj : error LNK2001: unresolved external symbol _xor_pixel 1>powder.obj : error LNK2001: unresolved external symbol _addpixel 1>powder.obj : error LNK2001: unresolved external symbol _textnwidth 1>powder.obj : error LNK2001: unresolved external symbol _drawtext 1>powder.obj : error LNK2001: unresolved external symbol _drawrect 1>powder.obj : error LNK2001: unresolved external symbol _rescale_img 1>powder.obj : error LNK2001: unresolved external symbol _fillrect 1>powder.obj : error LNK2001: unresolved external symbol _sdl_blit 1>powder.obj : error LNK2001: unresolved external symbol _blendpixel 1>powder.obj : error LNK2001: unresolved external symbol _draw_icon 1>powder.obj : error LNK2001: unresolved external symbol _draw_menu 1>powder.obj : error LNK2001: unresolved external symbol _xor_line 1>C:\Users\Daniel\Desktop\tpt-build\Release\tpt.exe : fatal error LNK1120: 23 unresolved externals
I'm also getting a lot of linking errors, but they point to redundant defines.
1>bzip2recover.obj : error LNK2005: _main already defined in bzip2.obj 1>dlltest.obj : error LNK2005: _main already defined in bzip2.obj 1>mk251.obj : error LNK2005: _main already defined in bzip2.obj 1>spewG.obj : error LNK2005: _main already defined in bzip2.obj 1>unzcrash.obj : error LNK2005: _main already defined in bzip2.obj 1>powder.obj : error LNK2005: _font_data already defined in graphics.obj 1>powder.obj : error LNK2005: _font_ptrs already defined in graphics.obj 1>powder.obj : error LNK2005: _cmode already defined in graphics.obj 1>powder.obj : error LNK2005: _sdl_scale already defined in graphics.obj 1>powder.obj : error LNK2005: _mwalls already defined in graphics.obj 1>powder.obj : error LNK2005: _msections already defined in graphics.obj 1>powder.obj : error LNK2005: _ptypes already defined in graphics.obj 1>powder.obj : error LNK2005: _pstates already defined in graphics.obj 1>SDLmain.lib(SDL_win32_main.obj) : error LNK2005: _main already defined in bzip2.obj 1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library 1>spewG.obj : error LNK2019: unresolved external symbol _random referenced in function _main 1>spewG.obj : error LNK2019: unresolved external symbol _setbuffer referenced in function _main 1>spewG.obj : error LNK2019: unresolved external symbol _srandom referenced in function _main 1>graphics.obj : error LNK2019: unresolved external symbol _fabsf referenced in function _draw_air 1>graphics.obj : error LNK2019: unresolved external symbol _clamp_flt referenced in function _draw_air 1>graphics.obj : error LNK2019: unresolved external symbol _sign referenced in function _draw_line 1>\FacialTurd-The-Powder-Toy-470519c\Debug\Powder Toy Alpha.exe : fatal error LNK1120: 6 unresolved externals