Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem when run Qt MinGW
Forum Updated to NodeBB v4.3 + New Features

Problem when run Qt MinGW

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.5k 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.
  • Y Offline
    Y Offline
    Yunan Luo
    wrote on last edited by
    #1

    I just downloaded and installed Qt 5.1.1 MinGW Window. Then I open the example project calculator but encounter problems when I click RUN. The compile outputs are like

    @c:\qt\qt5.1.1\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\cstdlib:72: In file included from c:\qt\qt5.1.1\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\cstdlib:72:0,@
    @c:\qt\qt5.1.1\tools\mingw48_32\i686-w64-mingw32\include\stddef.h:21: error: 'errno_t' does not name a type
    errno_t __cdecl _get_errno(int *_Value);
    ^@
    @c:\qt\qt5.1.1\tools\mingw48_32\i686-w64-mingw32\include\stddef.h:7: In file included from c:\qt\qt5.1.1\tools\mingw48_32\i686-w64-mingw32\include\stddef.h:7:0,@

    There are many this kind of errors (80+ issues)

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Are you using Qt creator as IDE or are you trying to compile from a command prompt?

      In Qt creator you could create a project and program from template and try to compile. In general this should work when the setup is ok.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        Yunan Luo
        wrote on last edited by
        #3

        koahnig, I'm using Qt creator as IDE. The calculator project is from Qt examples and I didn't change anything in it.
        I think maybe it has something to do with compiler? As it reported something wrong with <cstdlib> and <algorithm>..

        !http://v2.freep.cn/3tb_131215214305cqyb512293.png(screenshot)!

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Creating a project from template and trying to compile helps to understand if it is a setup problem or something wrong with the example code.

          Vote the answer(s) that helped you to solve your issue(s)

          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