List:MySQL++« Previous MessageNext Message »
From:Joel Fielder Date:January 8 2008 8:56am
Subject:RE: Mingw link errors, v3.0.0 beta 2
View as plain text  
Warren Young wrote:
> Given that mingw32-make is being used, as the README has
> recommended for quite some time now, can you give me details
> on a case where it fails?

Yes.  I have MingW installed separately from Cygwin and MSYS and I'm
building from the Windows command prompt.

According to http://www.mail-archive.com/make-w32@ style="color:#666">stripped/msg01059.html,
if sh.exe is found on your PATH, mingw32-make will use that to handle
shell, and this causes breakages like this:

mingw32-make -f Makefile.mingw clean
if exist .\*.o del .\*.o
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make: [clean] Error 258 (ignored)
if exist .\*.d del .\*.d
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make: [clean] Error 258 (ignored)
if exist mysqlpp_d.dll del mysqlpp_d.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make: [clean] Error 258 (ignored)

Etc.

Without sh.exe in the PATH, it uses the default shell (cmd.exe), which
works nicely.  However, the above source gives a better solution, which
I've successfully tested:

'Make 3.81 adds a feature whereby you can say "SHELL = cmd.exe" and
have it use CMD even if sh.exe is on your PATH.  Previous versions of
Make didn't allow even that.'

Version 3.81 is an official release so there's no reason that it can't
be a requirement IMO.


Joel

Thread
BETA RELEASE: v3.0.0 beta 2Warren Young4 Jan
  • Re: BETA RELEASE: v3.0.0 beta 2Jonathan Wakely5 Jan
    • RE: BETA RELEASE: v3.0.0 beta 2Jim Wallace7 Jan
      • Re: BETA RELEASE: v3.0.0 beta 2Warren Young7 Jan
        • Mingw link errors, v3.0.0 beta 2Joel Fielder7 Jan
          • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder7 Jan
          • Re: Mingw link errors, v3.0.0 beta 2Warren Young7 Jan
            • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder7 Jan
              • Re: Mingw link errors, v3.0.0 beta 2Warren Young7 Jan
                • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder8 Jan
                  • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder8 Jan
                  • Re: Mingw link errors, v3.0.0 beta 2Warren Young8 Jan
    • Re: BETA RELEASE: v3.0.0 beta 2Warren Young7 Jan
      • Re: BETA RELEASE: v3.0.0 beta 2Jonathan Wakely7 Jan