can't compile setup.exe

Jon TURNEY jon.turney@dronecode.org.uk
Thu Sep 2 13:38:00 GMT 2010


On 02/09/2010 06:42, Andy Koppe wrote:
> On 2 September 2010 05:18, Vasya Pupkin wrote:
>> I'm trying to compile setup.exe from source code I got from CVS.
>
> Great!
>
>> For some reason, I am getting an error:
>>
>> propsheet.cc: In member function `bool PropSheet::SetActivePage(int)':
>> propsheet.cc:444: error: expected id-expression before '::' token
>> propsheet.cc:444: error: expected `)' before '::' token
>> propsheet.cc:444: error: expected `;' before '::' token
>> propsheet.cc:444: error: expected `;' before ')' token
>> propsheet.cc: In member function `bool PropSheet::SetActivePageByID(int)':
>> propsheet.cc:452: error: expected id-expression before '::' token
>> propsheet.cc:452: error: expected `)' before '::' token
>> propsheet.cc:452: error: expected `;' before '::' token
>> propsheet.cc:452: error: expected `;' before ')' token
>> propsheet.cc: In member function `void PropSheet::SetButtons(DWORD)':
>> propsheet.cc:459: error: expected id-expression before '::' token
>> propsheet.cc:459: error: expected `;' before '::' token
>> propsheet.cc: In member function `void PropSheet::PressButton(int)':
>> propsheet.cc:465: error: expected id-expression before '::' token
>> propsheet.cc:465: error: expected `;' before '::' token
>> make[2]: *** [propsheet.o] Error 1
>>
>> I did not touch this file. I installed all required packages and
>> followed instruction in README file.
>
> Hmm, newly fails for me too, and I can't work out why, given that the
> line in question is ancient code. I configured thusly:
>
> ./configure -C --disable-shared --host=i686-pc-mingw32
> --build=i686-pc-cygwin CC="gcc-3 -mno-cygwin" CXX="g++-3 -mno-cygwin"

This was broken by the recent w32api-3.15 update, which seems to have made 
those PropSheet macros C++ aware, so the global scoping operator is no longer 
needed.

Patch attached to fix it, but I couldn't work out how to also get it to build 
with w32api-3.14.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: setup_fix_build_with_latest_w32api.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100902/17608e62/attachment.ksh>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list