[SRILM User List] G++ error when compiling

Tommy Gorman spiketg at hotmail.com
Sun Jun 3 03:21:16 PDT 2012


Hi there,
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".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.I should add that I am fairly new to using CYGWIN etc. so it could be a simple mistake.
Thanks,Tommy Gorman
Here is the error in context.
make release-programsmake[1]: Entering directory `/cygdrive/c/users/spiketg/downloads/srilm'for subdir in misc  dstruct  lm  flm  lattice  utils; do \        (cd $subdir/src; make SRILM=/cygdrive/c/users/spiketg/downloads/srilm  MACHINE_TYPE=cygwin  OPTION=  MAKE_PIC=yes release-programs) || exit 1; \donemake[2]: Entering directory `/cygdrive/c/users/spiketg/downloads/srilm/misc/src'make[2]: Nothing to be done for `release-programs'.make[2]: Leaving directory `/cygdrive/c/users/spiketg/downloads/srilm/misc/src'make[2]: Entering directory `/cygdrive/c/users/spiketg/downloads/srilm/dstruct/src'make[2]: Nothing to be done for `release-programs'.make[2]: Leaving directory `/cygdrive/c/users/spiketg/downloads/srilm/dstruct/src'make[2]: Entering directory `/cygdrive/c/users/spiketg/downloads/srilm/lm/src'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.ccg++: cannot specify -o with -c, -S or -E with multiple files/cygdrive/c/users/spiketg/downloads/srilm/common/Makefile.common.targets:93: recipe for target `../obj/cygwin/ngram-count.o' failedmake[2]: *** [../obj/cygwin/ngram-count.o] Error 1make[2]: Leaving directory `/cygdrive/c/users/spiketg/downloads/srilm/lm/src'Makefile:105: recipe for target `release-programs' failedmake[1]: *** [release-programs] Error 1make[1]: Leaving directory `/cygdrive/c/users/spiketg/downloads/srilm'Makefile:54: recipe for target `World' failedmake: *** [World] Error 2
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20120603/580e8ea3/attachment.html>


More information about the SRILM-User mailing list