<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 6/3/2012 3:21 AM, Tommy Gorman wrote:
    <blockquote cite="mid:BAY155-W3BEE587B139443998D47EB80E0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      <div dir="ltr">
        Hi there,
        <div><br>
        </div>
        <div>Im trying to install SRILM on windows using CYGWIN and I
          keep getting the following error "g++: cannot specify -o with
          -c, -S or -E with multiple files".</div>
        <div>I have looked all over the internet and cannot find an
          answer as to why this is happening. I would greatly appreciate
          any help you can give me to figure out the solution.</div>
        <div>I should add that I am fairly new to using CYGWIN etc. so
          it could be a simple mistake.</div>
      </div>
    </blockquote>
    The error message comes from the fact that
    /cygdrive/c/users/spiketg/downloads/msys_mingw8/msys/opt/tcl/include/tcl.h
    is passed to the compiler, instead of the -I option that allows the
    compiler to find the tcl.h file.<br>
    <br>
    Change TCL_INCLUDE to
    -I/cygdrive/c/users/spiketg/downloads/msys_mingw8/msys/opt/tcl/include
    .<br>
    <br>
    Andreas<br>
    <br>
    <blockquote cite="mid:BAY155-W3BEE587B139443998D47EB80E0@phx.gbl"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Tommy Gorman</div>
        <div><br>
        </div>
        <div>Here is the error in context.</div>
        <div><br>
        </div>
        <div>
          <div>make release-programs</div>
          <div>make[1]: Entering directory
            `/cygdrive/c/users/spiketg/downloads/srilm'</div>
          <div>for subdir in misc  dstruct  lm  flm  lattice  utils; do
            \</div>
          <div>        (cd $subdir/src; make
            SRILM=/cygdrive/c/users/spiketg/downloads/srilm
             MACHINE_TYPE=cygwin  OPTION=  MAKE_PIC=yes
            release-programs) || exit 1; \</div>
          <div>done</div>
          <div>make[2]: Entering directory
            `/cygdrive/c/users/spiketg/downloads/srilm/misc/src'</div>
          <div>make[2]: Nothing to be done for `release-programs'.</div>
          <div>make[2]: Leaving directory
            `/cygdrive/c/users/spiketg/downloads/srilm/misc/src'</div>
          <div>make[2]: Entering directory
            `/cygdrive/c/users/spiketg/downloads/srilm/dstruct/src'</div>
          <div>make[2]: Nothing to be done for `release-programs'.</div>
          <div>make[2]: Leaving directory
            `/cygdrive/c/users/spiketg/downloads/srilm/dstruct/src'</div>
          <div>make[2]: Entering directory
            `/cygdrive/c/users/spiketg/downloads/srilm/lm/src'</div>
          <div>g++ -Wall -Wno-unused-variable -Wno-uninitialized -fpic
            -DINSTANTIATE_TEMPLATES  
             /cygdrive/c/users/spiketg/downloads/msys_mingw8/msys/opt/tcl/include/tcl.h
            -I. -I../../include    -c -g -O2 -o
            ../obj/cygwin/ngram-count.o ngram-count.cc</div>
          <div>g++: cannot specify -o with -c, -S or -E with multiple
            files</div>
          <div>/cygdrive/c/users/spiketg/downloads/srilm/common/Makefile.common.targets:93:
            recipe for target `../obj/cygwin/ngram-count.o' failed</div>
          <div>make[2]: *** [../obj/cygwin/ngram-count.o] Error 1</div>
          <div>make[2]: Leaving directory
            `/cygdrive/c/users/spiketg/downloads/srilm/lm/src'</div>
          <div>Makefile:105: recipe for target `release-programs' failed</div>
          <div>make[1]: *** [release-programs] Error 1</div>
          <div>make[1]: Leaving directory
            `/cygdrive/c/users/spiketg/downloads/srilm'</div>
          <div>Makefile:54: recipe for target `World' failed</div>
          <div>make: *** [World] Error 2</div>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SRILM-User site list
<a class="moz-txt-link-abbreviated" href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a>
<a class="moz-txt-link-freetext" href="http://www.speech.sri.com/mailman/listinfo/srilm-user">http://www.speech.sri.com/mailman/listinfo/srilm-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>