Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Adding gcc and gdb to Creator (Windows XP)
Forum Updated to NodeBB v4.3 + New Features

Adding gcc and gdb to Creator (Windows XP)

Scheduled Pinned Locked Moved Qt Creator and other tools
14 Posts 2 Posters 6.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #4

    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?

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #5

      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.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #6

        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);
        @

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #7

          [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

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #8

            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;
            @

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #9

              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.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #10

                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;
                

                }
                @

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by
                  #11

                  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?

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #12

                    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.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #13

                      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.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #14

                        Nope, I never was in need of using boost.

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved