Hello Nicholas, Thursday, July 11, 2002, 5:22:40 PM, you wrote:
NW> Christopher Faylor wrote: >>On Thu, Jul 11, 2002 at 05:03:35PM +0200, Pavel Tsekov wrote: >> >>>Hello Nicholas, >>> >>>Thursday, July 11, 2002, 4:41:05 PM, you wrote: >>> >>>>>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. >>>>> >>>NW> Ok, >>> >>>NW> Strike that, that didn't fix the problem. I'm looking into it now. >>> >>>windres is part of binutils not the gcc suite. I just hacked my way >>>through this by setting --include-dir=/usr/include/w32api.. I guess >>>a configure test doesn't get the proper value. >>> >> >>Hmm. AFAIK, I haven't changed anything with the include logic. I changed >>things in gcc some time ago so that w32api wasn't included unless you >>added a -mwin32 to your command line. So, I don't know why this is >>suddenly required. >> >>cgf >> NW> Sorry Pavel, NW> It worked to a certain extent, but now it's not linking properly. I'll NW> have to investigate more. Meanwhile, here's the output from ld: NW> windres --include-dir ../setup --include-dir /usr/include/w32api -o NW> res.o ../setup/res.rc NW> ../setup/res.rc:217:6: invalid preprocessing directive #CONTROL NW> /bin/bash ./libtool --mode=link g++-2 -mno-cygwin -Werror -Wall NW> -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes NW> -Wmissing-prototypes -Wmissing-declarations -Wcomments -g -O2 -o NW> setup.exe -mwindows archive.o archive_tar.o archive_tar_file.o NW> autoload.o category.o choose.o cistring.o compress.o compress_bz.o NW> compress_gz.o concat.o cygpackage.o desktop.o dialog.o diskfull.o NW> download.o Exception.o find.o FindVisitor.o filemanip.o fromcwd.o NW> geturl.o hash.o ini.o IniDBBuilder.o IniDBBuilderPackage.o inilex.o NW> iniparse.o IniParseFeedback.o IniParseFindVisitor.o install.o NW> io_stream.o io_stream_cygfile.o io_stream_file.o io_stream_memory.o NW> localdir.o log.o LogFile.o LogSingleton.o main.o md5.o MD5++.o mkdir.o NW> mklink2.o mount.o msg.o net.o netio.o nio-ie5.o nio-file.o nio-ftp.o NW> nio-http.o package_db.o package_meta.o package_source.o NW> package_version.o PackageSpecification.o PickCategoryLine.o PickLine.o NW> PickPackageLine.o PickView.o postinstall.o proppage.o propsheet.o NW> rfc1738.o root.o ScanFindVisitor.o script.o setup_version.o simpsock.o NW> site.o source.o splash.o state.o String++.o threebar.o version.o win32.o NW> window.o res.o zlib/libzcygw.a bz2lib/libbz2.a NW> libgetopt++/libgetopt++.la -lstdc++ -luser32 -lkernel32 -lcomctl32 NW> -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid -lmingw32 NW> mkdir .libs NW> libtool: link: warning: library `/usr/lib/mingw/libstdc++.la' was moved. NW> libtool: link: warning: library `/usr/lib/mingw/libstdc++.la' was moved. NW> g++-2 -mno-cygwin -Werror -Wall -Wpointer-arith -Wcast-align NW> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes NW> -Wmissing-declarations -Wcomments -g -O2 -o setup.exe -mwindows NW> archive.o archive_tar.o archive_tar_file.o autoload.o category.o NW> choose.o cistring.o compress.o compress_bz.o compress_gz.o concat.o NW> cygpackage.o desktop.o dialog.o diskfull.o download.o Exception.o find.o NW> FindVisitor.o filemanip.o fromcwd.o geturl.o hash.o ini.o IniDBBuilder.o NW> IniDBBuilderPackage.o inilex.o iniparse.o IniParseFeedback.o NW> IniParseFindVisitor.o install.o io_stream.o io_stream_cygfile.o NW> io_stream_file.o io_stream_memory.o localdir.o log.o LogFile.o NW> LogSingleton.o main.o md5.o MD5++.o mkdir.o mklink2.o mount.o msg.o NW> net.o netio.o nio-ie5.o nio-file.o nio-ftp.o nio-http.o package_db.o NW> package_meta.o package_source.o package_version.o PackageSpecification.o NW> PickCategoryLine.o PickLine.o PickPackageLine.o PickView.o postinstall.o NW> proppage.o propsheet.o rfc1738.o root.o ScanFindVisitor.o script.o NW> setup_version.o simpsock.o site.o source.o splash.o state.o String++.o NW> threebar.o version.o win32.o window.o res.o zlib/libzcygw.a NW> bz2lib/libbz2.a libgetopt++/.libs/libgetopt++.a -lstdc++ NW> -L/usr/lib/mingw -L/usr/lib/w32api NW> -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-8 NW> -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-8/../../../../i686-pc-cygwin/lib NW> -lstdc++-2 /usr/lib/mingw/libstdc++.a What about removeing /usr/lib/mingw/libstdc++.a
