<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><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><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></body>
</html>