This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling setup.exe with the new gcc-2


I wasn't sure if I should post this here or in the main list, but here goes. I'm using the latest gcc-2/g++-2, gcc/g++ v3 has some problems with the c++ libraries as mentioned in another post. Anyhow, I've got the latest cvs sources for setup.exe on my machine. I am building in a separate dir, using the following command as suggested by the setup homepage:
../setup/configure -C --enable-dependencies --disable-shared --host=i686-pc-mingw32 --build=i686-pc-cygwin CC="gcc-2 -mno-cygwin" \
CXX="g++-2 -mno-cygwin" CPPFLAGS=-I/usr/include/g++-3 --enable-maintainer-mode

Anyhow, with the previous gcc/g++ (v2), this method used to build smooth as silk. Now, however, I get the error:

windres --include-dir ../setup -o res.o ../setup/res.rc
../setup/res.rc:11:21: windows.h: No such file or directory
../setup/res.rc:217:6: invalid preprocessing directive #CONTROL
windres: ../setup/res.rc:32: syntax error
make[2]: *** [res.o] Error 1
make[2]: Leaving directory `/usr/src/cygwin-setup-src/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/cygwin-setup-src/build'
make: *** [all] Error 2

Which leads me to conclude that the logic for the gcc-2/g++-2 specs no longer includes /usr/include/w32api in its default search path. Anyhow, I thought I'd post this for anyone who is trying to compile setup.exe with the new gcc-2/g++-2. The answer is to include -I/usr/include/w32api in your CPPFLAGS until this gets cleared up.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]