title: \mingw32\bin\ld.exe: cannot find -lC:/msys/1.0/opt/tcl/lib
body: <p>I am attempting to compile a simulator for Y86 code (http://csapp.cs.cmu.edu/public/sim.tar) on Windows using mingw and msys, the simulator uses Tcl and Tk for a GUI that it has, so I first tried downloading the needed includes and libs for Tcl and Tk to build with, that didn't work, so I downloaded the source and built them in msys (http://wiki.tcl.tk/14828). </p>
  
  <p>The issue I am having is that I keep getting the same error when running the make file, </p>
  
  <blockquote>
    <p>chrismeyer@MEYER-C /src/sim<br>
    $ make<br>
    (cd misc; make all)
    make[1]: Entering directory <code>/src/sim/misc'
    make[1]: Nothing to be done for</code>all'.
    make[1]: Leaving directory <code>/src/sim/misc'
    (cd pipe; make all GUIMODE=-DHAS_GUI TKLIBS="-l /opt/tcl/lib" TKINC="-I /opt/tcl/include")
    make[1]: Entering directory</code>/src/sim/pipe'
     Building the pipe-std.hcl version of PIPE
    ../misc/hcl2c -n pipe-std.hcl &lt; pipe-std.hcl > pipe-std.c
    gcc -Wall -O2 -I /opt/tcl/include -I../misc -DHAS_GUI -o psim psim.c pipe-std.c \
                    ../misc/isa.c -l /opt/tcl/lib -lm
    c:\minGW\bin..\lib\gcc\mingw32\3.4.5........\mingw32\bin\ld.exe: cannot find -lC:/msys/1.0/opt/tcl/lib
    collect2: ld returned 1 exit status
    make[1]: <em>*</em> [psim] Error 1
    make[1]: Leaving directory `/src/sim/pipe'</p>
  </blockquote>
  
  <p>Sorry about the formatting of the error, it got messed up a little bit.
  The main problem is this line</p>
  
  <pre><code>C:\minGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lC:/msys/1.0/opt/tcl/lib
  </code></pre>
  
  <p>I am unsure why gcc cannot find the lib directory, it exists, I have checked many times.</p>
  
  <p>Any insight into this issue would be very helpful!</p>
  
  <p>Thanks!</p>