This is the mail archive of the cygwin 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]

cygwin builds and unicode support


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@gmail.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@hotmail.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@yahoo.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


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