title: How to build this project? (jpeg lib)
body: <p><strong>Edit:</strong> im now using <a href="http://code.google.com/p/jpeg-compressor/" rel="nofollow">http://code.google.com/p/jpeg-compressor/</a> so i dont care about making this work anymore.</p>
  
  <p>I downloaded the <a href="http://ijg.org/" rel="nofollow">http://ijg.org/</a> source code, i tried to build it as a DLL file.
  This is farthest i could build until i went into dead-end.</p>
  
  <p>I noticed there was some .c files which i had to delete, but i dont know if i deleted the correct ones, there was at least these files <code>jmemmac.c</code> and <code>jmemdos.c</code> which i figured i dont need. I had to delete <code>jmemmac.c</code> because i compile on windows, but it gave more errors so i kept deleting those useless files, but now i dont know what to do anymore.</p>
  
  <p>Here are all the errors i got when building:</p>
  
  <pre><code>1&gt;.\ansi2knr.c(273) : warning C4013: 'exit' undefined; assuming extern returning int
  
  1&gt;.\example.c(116) : warning C4013: 'exit' undefined; assuming extern returning int
  1&gt;.\example.c(379) : warning C4013: 'put_scanline_someplace' undefined; assuming extern returning int
  
  1&gt;ckconfig.obj : error LNK2005: _main already defined in wrjpgcom.obj
  1&gt;djpeg.obj : error LNK2005: _main already defined in wrjpgcom.obj
  1&gt;rdjpgcom.obj : error LNK2005: _main already defined in wrjpgcom.obj
  1&gt;jpegtran.obj : error LNK2005: _main already defined in wrjpgcom.obj
  1&gt;cjpeg.obj : error LNK2005: _main already defined in wrjpgcom.obj
  1&gt;ansi2knr.obj : error LNK2005: _main already defined in wrjpgcom.obj
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_open_backing_store
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_get_small
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_mem_term
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_free_large
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_get_large
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_mem_available
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_free_small
  1&gt;jmemmgr.obj : error LNK2001: unresolved external symbol _jpeg_mem_init
  1&gt;example.obj : error LNK2001: unresolved external symbol _image_height
  1&gt;example.obj : error LNK2001: unresolved external symbol _image_buffer
  1&gt;example.obj : error LNK2001: unresolved external symbol _put_scanline_someplace
  1&gt;example.obj : error LNK2001: unresolved external symbol _image_width
  </code></pre>