Adding gcc and gdb to Creator (Windows XP)
-
I'm using the bundled version that came in the download yesterday. According to the tool chain, it's in /QtSDK/mingw/bin/mingw32-g++.exe.
I can't find the MSYS command line, so I can't tell you what version.
And...I'm reluctant to use Qt data typing, because I don't yet know where all this program will be hosted, but I did test it, and got the same error.
I was told that Boost might get me around this problem, but...how to install it isn't obvious (actually, not much of anything on Windows is obvious to me). I downloaded it and unzipped it, but haven't figured out how to complete the installation.
-
Strange. Are you really sure you only do have a 64 bit constant?
What is the output of
@
qDebug() << "sizeof(uint64_t)" << sizeof(uint64_t);
qDebug() << "sizeof(quint64)" << sizeof(quint64);
qDebug() << "sizeof(long long int)" << sizeof(long long int);
qDebug() << "sizeof(long int)" << sizeof(long int);
@ -
[quote author="Volker" date="1322839386"]Strange. Are you really sure you only do have a 64 bit constant?[/quote]
I'm not sure what you're asking...the hex value I'm supplying has 16 digits, which should correspond to 64 bits.
[quote]What is the output of
@
qDebug() << "sizeof(uint64_t)" << sizeof(uint64_t);
qDebug() << "sizeof(quint64)" << sizeof(quint64);
qDebug() << "sizeof(long long int)" << sizeof(long long int);
qDebug() << "sizeof(long int)" << sizeof(long int);
@
[/quote]sizeof (uint64_t) 8
sizeof (quint64) 8
sizeof (long long int) 8
sizeof (long int) 4 -
Double- and triple-checked...the hex value is good (or at least, it's what I intend it to be. ff, followed by 14 0s.
I've also tried ff << 56 with similar results.
Is it possible that I'm omitting a needed header file? Which do you include in your example that worked?
Output of that line is:
4 4 0.
Thanks for helping.
-
That's the complete program:
@
#include <QtCore/QCoreApplication>
#include <QDebug>int main(int argc, char *argv[])
{
QCoreApplication(argc, argv);
const quint64 ui64 = 0xf123456789abcdef;qDebug() << "ui64" << ui64 << QString::number(ui64, 16); qDebug() << "sizeof(quint64)" << sizeof(quint64); qDebug() << "sizeof(uint64_t)" << sizeof(uint64_t); qDebug() << "sizeof(long long int)" << sizeof(long long int); qDebug() << "sizeof(long int)" << sizeof(long int); return 0;
}
@ -
Fascinating...I just copied your program, and I get the same warning I've been getting all along (line 7 this time).
Is your system 32-bit?
EDIT: I have a number of other compilers in my tool chain; would it be worth trying a different one? How does one go about shuffling the order of the auto-detected tools?