Adding gcc and gdb to Creator (Windows XP)
-
Hm, I don't get an error or warning on my MinGW installation.
Which MinGW do you use? The SDK bundled one or did you install it your self?
What's your gcc version (call "gcc --version" on the MSYS command line)?
Did you try to replace uint64_t with quint64? -
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 -
Can you double-check that there is no typo and you do not have another digit sneaked in? The size of the types look ok.
What's the output of
@
qDebug() << GNUC << GNUC_MINOR << GNUC_PATCHLEVEL;
@ -
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?
-
Hm. It's a 64bit Vista system. But MinGW and Qt both are 32bit versions, so theoretically that shouldn't be a problem.
I need to install the SDK on a 32 bit XP box next week to check.
-
OK...in the meantime, I'd better start looking for a solution to this. Do you use the Boost libraries on your Vista system? I need a pointer on installing it.
-
Nope, I never was in need of using boost.