Qt6 topics merged with General

Problem when run Qt MinGW

  • 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)

  • 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.

  • 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>..


  • 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.

Log in to reply