I just did a build on Windows, and was tripped up by the symbol _WIN32 not being defined by Cygwin 1.7's GCC 3. Once I forced it to be set, everything built fine:
Is this not solved following this instruction on the compiling page?
(only in case you're using Cygwin 1.7 execute: “chmod 755 /usr/bin/set-gcc-default-3.sh” and ”/usr/bin/set-gcc-default-3.sh” effectively setting Cygwin 1.7 to use the gcc version 3 compiler in stead of the standard gcc version 4 compiler). You can reverse this by executing: “chmod 755 /usr/bin/set-gcc-default-4.sh” and ”/usr/bin/set-gcc-default-4.sh”
If not, I'll add the instruction.
Best,
Cat_7
Last edited by Cat_7 on Thu Apr 18, 2013 5:04 pm, edited 1 time in total.
Reason:
Cat_7 wrote:
Is this not solved following this instruction on the compiling page?
(only in case you're using Cygwin 1.7 execute: “chmod 755 /usr/bin/set-gcc-default-3.sh”
(etc)
That didn't seem to do anything, actually!
Apparently Cygwin 1.7 no longer sets up gcc-3 as an alternative "gcc":
$ set-gcc-default-3.sh
/usr/bin/gcc-3.exe has not been configured as an alternative for gcc
/usr/bin/g++-3.exe has not been configured as an alternative for g++
I had to manually ask ./configure to use gcc-3, or just make symlinks /usr/local/bin/gcc -> /usr/bin/gcc-3 .
Anyhow, even once I was using gcc-3, it still didn't work for me without the "-mwin32" flag. I'm not sure why _WIN32 isn't #defined by default in Cygwin, maybe there's a package I'm missing or something?