Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com From: swamp-dog AT ntlworld DOT com (Guy Harrison) To: Subject: Re: Patch for Setup.exe problem and for mklink2.cc Date: Sat, 06 Apr 2002 15:48:56 GMT Message-ID: <3caf0683.381015270@smtp.ntlworld.com> References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g36FnCr03583 On Wed, 03 Apr 2002 13:11:53 EST, Brian Keener wrote: > wrote: >> > As for the &'s, I wonder if it's a w32api reference issue? The compiler >> >> > complains if they are present for me. >> >> For me it is the opposite. g++ complains when they are *not* >> >> present. >> >I believe this might be related to the above discussion so I thought I would >add this - I updated my cinstall (Setup.exe) node from HEAD in cvs (cvs update >-rHEAD) on Monday and now when I try to compile on my Win2000 laptop I get the >following error: > >make[2]: Entering directory `/usr/develop/obj/i686-pc-cygwin/winsup/cinstall' >/usr/bin/c++ -L/usr/develop/obj/i686-pc-cygwin/winsup >-L/usr/develop/obj/i686-pc-cygwin/winsup/cygwin >-L/usr/develop/obj/i686-pc-cygwin/winsup/w32api/lib -isystem >/usr/develop/src/winsup/include -isystem /usr/develop/src/winsup/cygwin/include >-isystem /usr/develop/src/winsup/w32api/include -isystem >/usr/develop/src/newlib/libc/sys/cygwin -isystem >/usr/develop/src/newlib/libc/sys/cygwin32 >-B/usr/develop/obj/i686-pc-cygwin/newlib/ -isystem >/usr/develop/obj/i686-pc-cygwin/newlib/targ-include -isystem >/usr/develop/src/newlib/libc/include -MMD -g -O2 -mno-cygwin -I. >-I/usr/develop/src/winsup/cinstall -I/usr/develop/src/winsup/mingw/include >-I/usr/develop/src/winsup/bz2lib -mwindows -c -o mklink2.o >/usr/develop/src/winsup/cinstall/mklink2.cc >/usr/develop/src/winsup/cinstall/mklink2.cc: In function `void >make_link_2(const char *, const char *, const char *, const char *)': >/usr/develop/src/winsup/cinstall/mklink2.cc:24: cannot convert >`CLSID_ShellLink' from type `const GUID' to type `const CLSID *' >/usr/develop/src/winsup/cinstall/mklink2.cc:25: cannot convert >`IID_IPersistFile' from type `_GUID' to type `const IID *' >make[2]: *** [mklink2.o] Error 1 >make[2]: Leaving directory `/usr/develop/obj/i686-pc-cygwin/winsup/cinstall' >make[1]: *** [cinstall] Error 1 >make[1]: Leaving directory `/usr/develop/obj/i686-pc-cygwin/winsup' >make: *** [all-target-winsup] Error 2 >~ >$ > >I have tried reinstalling the w32api packages for version 1.1-1, 1.2-1 and >1.2-2 as well as other various packages in an attempt to resolve but still get >the same error when I compile. Just happened here also. Strong typing issue. I doubt this file was intended to be compiled in c++ mode. >I see the patch that Ton van Overbeek and I am about to try that - will this >become a standard patch. I fudged it "post failure" thus: mklink2.cc -> mklink.c (tweek mklink2.d) and you'll need put the required address-of operators back. -- swamp-dog AT ntlworld DOT com