X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=BAYES_40,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Sun, 21 Mar 2010 14:06:21 -0400 Message-ID: Subject: cygwin builds and unicode support From: mike marchywka To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I'm trying to build QT webkit on cygwin and running into all kinds of confusions over char and wide char- it compiled right away on debian. I'm not entirely sure this is an issue with cygwin as much as this project and something stupid I'm missing but I'll see what kind of response I get here as maybe someone else has built this on cygwin :) First, there were some issues with windoze calls that can either end in "A" or "W" for ascii and wide char params. These were easy to fix. That looked like it was fine until I ran into this, a bunch of ambig overloads based on confusion with uint and ushort ../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:401: error: call of overloaded `direction(UChar32&)' is ambiguous ../../../../include/QtCore/../../src/corelib/tools/qchar.h:303: note: candidates are: static QChar::Direction QChar::direction(uint) ../../../../include/QtCore/../../src/corelib/tools/qchar.h:304: note: static QChar::Direction QChar::direction(ushort) As near as I can tell, the typedefs are "normal", $ grep "uint;" `find -type f` | grep "typedef\|define" ./src/corelib/global/qglobal.h:typedef unsigned int uint; $ grep "ushort" `find -type f` | grep "typedef\|define" ./src/corelib/global/qglobal.h:typedef unsigned short ushort; but I'm not sure I understand the ambiguity if UChar32 is an unsigned int but apparently it can be deffed to something called int32_t. $ grep "UChar32;" `find -type f` | grep "typedef\|define" ./src/3rdparty/javascriptcore/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h:typedef int32_t UChar32; ./src/3rdparty/javascriptcore/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:typedef uint32_t UChar32; ./src/3rdparty/webkit/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h:typedef int32_t UChar32; ./src/3rdparty/webkit/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:typedef uint32_t UChar32; So, I guess my question is is this likely to relate to some common issue trying to build on cygwin or is it just something in the project I need to hunt down? And, why is this ambiguous shouldn't it take the unsigned int overload? I'll ask if this is a compiler problem just to goad someone to explain to me what I'm missing :) Thanks. -- marchywka AT gmail DOT com note new address 2009-12-16: Mike Marchywka 1975 Village Round Marietta GA 30064 415-264-8477 (w)<- use this 404-788-1216 (C)<- leave message 989-348-4796 (P)<- emergency only marchywka AT hotmail DOT com Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: hotmail is censoring incoming mail using random criteria beyond my control and often hangs my browser but all my subscriptions are here..., try also marchywka AT yahoo DOT com -- 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