Unexpected EOF while looking for matching `"'

I get this while compiling SDL in MinGW32.=================
Making all in src
V:\MSYS\mingw\bin\make.exe[1]: Entering directory v:/SDL-1.2.3/src' Making all in main V:\MSYS\mingw\bin\make.exe[2]: Entering directoryv:/SDL-1.2.3/src/main’
V:/MSYS/BIN/sh.exe …/…/libtool --mode=compile gcc -DPACKAGE=“SDL”
-DVERSION=“1.2.3” -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall
-DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -I…/…/src/video/wincommon
-DENABLE_WINDIB -I…/…/include -I…/…/include/SDL -I…/…/src
-I…/…/src/win32 -I…/…/src/main -I…/…/src/audio -I…/…/src/video
-I…/…/src/events -I…/…/src/joystick -I…/…/src/cdrom
-I…/…/src/thread -I…/…/src/timer -I…/…/src/endian -I…/…/src/file -c
dummy.c
rm: invalid option – c
Try rm --help' for more information. rm -f .libs/file -c dummy.lo rm: invalid option -- c Tryrm --help’ for more information.
gcc -DPACKAGE=\SDL" -DVERSION=“1.2.3” -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall
-DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -I…/…/src/video/wincommon
-DENABLE_WINDIB -I…/…/include -I…/…/include/SDL -I…/…/src
-I…/…/src/win32 -I…/…/src/main
-I…/…/src/audio -I…/…/src/video -I…/…/src/events -I…/…/src/joystick
-I…/…/src/cdrom -I…/…/src/thread -I…/…/src/timer -I…/…/src/endian
-I…/…/src/file -c dummy.c -DPIC -o .libs/file -c dummy.lo
…/…/libtool: eval: line 1: unexpected EOF while looking for matching "' ../../libtool: eval: line 2: syntax error: unexpected end of file rm: invalid option -- c Tryrm --help’ for more information.
V:\MSYS\mingw\bin\make.exe[2]: *** [dummy.lo] Error 1
V:\MSYS\mingw\bin\make.exe[2]: Leaving directory v:/SDL-1.2.3/src/main' V:\MSYS\mingw\bin\make.exe[1]: *** [all-recursive] Error 1 V:\MSYS\mingw\bin\make.exe[1]: Leaving directoryv:/SDL-1.2.3/src’
V:\MSYS\mingw\bin\make.exe: *** [all-recursive] Error 1

Similar errors occur when running make in individual src dirs.

What’s gone wrong?

                     Thanks,
                             Tim Bates

I get this while compiling SDL in MinGW32.

Can you more fully describe your build environment?
e.g. what version of mingw32, where did you get the tools, do you have
any UNIX commands installed, etc.

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hello!

Perhaps it’s a problem with different
(Unix vs. Windows style) line feeds?

Ciao,
Eike

Can you more fully describe your build environment?
e.g. what version of mingw32,

MinGW 1.1 running via MSYS 1.0.7

where did you get the tools,

www.mingw.org

do you have any UNIX commands installed, etc.

Only the default that come with MSYS 1.0.7

The configure script runs alright, with lots of things missing such as
automake, but it doesn’t exit prematurely so I’m guessing that’s alright.
It’s only when I come to compile SDL that it dies.

                     Thanks,
                             Tim Bates

MinGW 1.1 running via MSYS 1.0.7

where did you get the tools,

www.mingw.org

do you have any UNIX commands installed, etc.

Only the default that come with MSYS 1.0.7

Cool, I didn’t know MinGW had progressed this much. I’m building
SDL now and I’ll update the FAQ (and SDL) when I’m done.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

This turns out to be a bug in the version of make included with MinGW.
I fixed it, and you can get a fixed version from:
http://www.libsdl.org/extras/win32/mingw32/make.exe
I’ll be submitting a patch back to the MinGW folks soon.

I’m putting together a README with some of the other pitfalls:
http://www.libsdl.org/extras/win32/mingw32/README.txt

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Pitfall I just discovered – in the mingw32 I got from the SDL site, there
is no snprintf function, but there is an _snprintf. Unfortunately, _snprintf
acts just like the real snprintf except it writes one more character than
you tell it to – yay buffer overflows.On Fri, May 17, 2002 at 11:57:20PM -0700, Sam Lantinga wrote:

I’m putting together a README with some of the other pitfalls:
http://www.libsdl.org/extras/win32/mingw32/README.txt


Matthew Miller @Matthew_Miller http://www.mattdm.org/
Boston University Linux ------> http://linux.bu.edu/