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. Error: Only Win32 target is supported!
Forum Updated to NodeBB v4.3 + New Features

Error: Only Win32 target is supported!

Scheduled Pinned Locked Moved General and Desktop
12 Posts 2 Posters 2.0k 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.
  • K Offline
    K Offline
    Ketan
    wrote on last edited by Ketan
    #1

    I've included windows.h (C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include) in my test app and when compiling, the error "Only Win32 target is supported!" shows up followed by redefinition errors.
    Any help solving this errors will be appreaciated. Thanks!

    Build:- Qt 5.14 with mingw 7.3 - 64 Bit, Windows.

    jsulmJ 1 Reply Last reply
    0
    • K Ketan

      I've included windows.h (C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include) in my test app and when compiling, the error "Only Win32 target is supported!" shows up followed by redefinition errors.
      Any help solving this errors will be appreaciated. Thanks!

      Build:- Qt 5.14 with mingw 7.3 - 64 Bit, Windows.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ketan said in Error: Only Win32 target is supported!:

      C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\bin

      What do you mean with this path? windows.h file is not located there.
      Can you post whole build log?
      I can't reproduce the problem with Qt 5.11.1

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 2 Replies Last reply
      1
      • jsulmJ jsulm

        @Ketan said in Error: Only Win32 target is supported!:

        C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\bin

        What do you mean with this path? windows.h file is not located there.
        Can you post whole build log?
        I can't reproduce the problem with Qt 5.11.1

        K Offline
        K Offline
        Ketan
        wrote on last edited by
        #3

        @jsulm said in Error: Only Win32 target is supported!:

        h? windows.h

        I'm sorry it's a typo. Include path - C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @Ketan said in Error: Only Win32 target is supported!:

          C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\bin

          What do you mean with this path? windows.h file is not located there.
          Can you post whole build log?
          I can't reproduce the problem with Qt 5.11.1

          K Offline
          K Offline
          Ketan
          wrote on last edited by
          #4

          @jsulm edited!

          jsulmJ 1 Reply Last reply
          0
          • K Ketan

            @jsulm edited!

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Ketan Please show whole build log

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Ketan
              wrote on last edited by
              #6

              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include/_mingw.h:268:2: error: Only Win32 target is supported!
              #error Only Win32 target is supported!
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:379:22: error: typedef redefinition with different types ('unsigned int' vs 'unsigned long')
              typedef unsigned int size_t;
              ^
              C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:120:24: note: previous definition is here
              typedef unsigned _Addr size_t;
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:427:13: error: typedef redefinition with different types ('int' vs 'long')
              typedef int ptrdiff_t;
              ^
              C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:130:15: note: previous definition is here
              typedef _Addr ptrdiff_t;
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:51:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl memcpy_s (void *_dest,size_t _numberOfElements,const void *_src,size_t _count);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:28:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl strerror_s(char *_Buf,size_t _SizeInBytes,int _ErrNum);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:48:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl memmove_s(void *_dest,size_t _numberOfElements,const void _src,size_t _count);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:172:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              extern __declspec(dllimport) char _sys_errlist[1];
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:173:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              extern __declspec(dllimport) int _sys_nerr;
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:741:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:147:28: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
              _Ptr = (char
              )_Ptr + _ALLOCA_S_MARKER_SIZE;
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:166:34: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
              _Memory = (char
              )_Memory - _ALLOCA_S_MARKER_SIZE;
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1150:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP int __cdecl _vswprintf_p(wchar_t * restrict _DstBuf,size_t _MaxCount,const wchar_t * restrict _Format,va_list _ArgList);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1152:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP int __cdecl _vscwprintf_p(const wchar_t * restrict _Format,va_list _ArgList);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1378:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wasctime_s (wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1380:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wctime32_s (wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1384:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wstrdate_s (wchar_t *_Buf,size_t _SizeInWords);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1386:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wstrtime_s (wchar_t *_Buf,size_t _SizeInWords);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1388:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wctime64_s (wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1524:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/wchar_s.h:28:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _waccess_s (const wchar_t *_Filename,int _AccessMode);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from main.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1524:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/wchar_s.h:29:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wmktemp_s (wchar_t *_TemplateName,size_t _SizeInWords);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              fatal error: too many errors emitted, stopping now [-ferror-limit=]
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include/_mingw.h:268:2: error: Only Win32 target is supported!
              #error Only Win32 target is supported!
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:379:22: error: typedef redefinition with different types ('unsigned int' vs 'unsigned long')
              typedef unsigned int size_t;
              ^
              C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:120:24: note: previous definition is here
              typedef unsigned _Addr size_t;
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:427:13: error: typedef redefinition with different types ('int' vs 'long')
              typedef int ptrdiff_t;
              ^
              C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:130:15: note: previous definition is here
              typedef _Addr ptrdiff_t;
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:51:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl memcpy_s (void *_dest,size_t _numberOfElements,const void *_src,size_t _count);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:28:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl strerror_s(char *_Buf,size_t _SizeInBytes,int _ErrNum);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:48:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl memmove_s(void *_dest,size_t _numberOfElements,const void _src,size_t _count);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:172:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              extern __declspec(dllimport) char _sys_errlist[1];
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:173:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              extern __declspec(dllimport) int _sys_nerr;
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
              In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:741:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:147:28: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
              _Ptr = (char
              )_Ptr + _ALLOCA_S_MARKER_SIZE;
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:166:34: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
              _Memory = (char
              )_Memory - _ALLOCA_S_MARKER_SIZE;
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1150:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP int __cdecl _vswprintf_p(wchar_t * restrict _DstBuf,size_t _MaxCount,const wchar_t * restrict _Format,va_list _ArgList);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1152:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP int __cdecl _vscwprintf_p(const wchar_t * restrict _Format,va_list _ArgList);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1378:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wasctime_s (wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
              #define _SECIMP __declspec(dllimport)
              ^
              In file included from mainwindow.cpp:1:
              In file included from ./mainwindow.h:4:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
              In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
              In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1380:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
              _SECIMP errno_t __cdecl _wctime32_s (wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
              ^
              C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'

              jsulmJ 1 Reply Last reply
              0
              • K Ketan

                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include/_mingw.h:268:2: error: Only Win32 target is supported!
                #error Only Win32 target is supported!
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:379:22: error: typedef redefinition with different types ('unsigned int' vs 'unsigned long')
                typedef unsigned int size_t;
                ^
                C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:120:24: note: previous definition is here
                typedef unsigned _Addr size_t;
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:427:13: error: typedef redefinition with different types ('int' vs 'long')
                typedef int ptrdiff_t;
                ^
                C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:130:15: note: previous definition is here
                typedef _Addr ptrdiff_t;
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:51:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl memcpy_s (void *_dest,size_t _numberOfElements,const void *_src,size_t _count);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:28:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl strerror_s(char *_Buf,size_t _SizeInBytes,int _ErrNum);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:48:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl memmove_s(void *_dest,size_t _numberOfElements,const void _src,size_t _count);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:172:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                extern __declspec(dllimport) char _sys_errlist[1];
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:173:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                extern __declspec(dllimport) int _sys_nerr;
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:741:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:147:28: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
                _Ptr = (char
                )_Ptr + _ALLOCA_S_MARKER_SIZE;
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:166:34: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
                _Memory = (char
                )_Memory - _ALLOCA_S_MARKER_SIZE;
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1150:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP int __cdecl _vswprintf_p(wchar_t * restrict _DstBuf,size_t _MaxCount,const wchar_t * restrict _Format,va_list _ArgList);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1152:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP int __cdecl _vscwprintf_p(const wchar_t * restrict _Format,va_list _ArgList);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1378:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wasctime_s (wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1380:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wctime32_s (wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1384:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wstrdate_s (wchar_t *_Buf,size_t _SizeInWords);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1386:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wstrtime_s (wchar_t *_Buf,size_t _SizeInWords);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1388:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wctime64_s (wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1524:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/wchar_s.h:28:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _waccess_s (const wchar_t *_Filename,int _AccessMode);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from main.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1524:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/wchar_s.h:29:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wmktemp_s (wchar_t *_TemplateName,size_t _SizeInWords);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                fatal error: too many errors emitted, stopping now [-ferror-limit=]
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include/_mingw.h:268:2: error: Only Win32 target is supported!
                #error Only Win32 target is supported!
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:379:22: error: typedef redefinition with different types ('unsigned int' vs 'unsigned long')
                typedef unsigned int size_t;
                ^
                C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:120:24: note: previous definition is here
                typedef unsigned _Addr size_t;
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:9:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\crtdefs.h:10:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include_mingw.h:427:13: error: typedef redefinition with different types ('int' vs 'long')
                typedef int ptrdiff_t;
                ^
                C:\emsdk\emscripten\1.38.27\system\lib\libc\musl\arch\emscripten\bits/alltypes.h:130:15: note: previous definition is here
                typedef _Addr ptrdiff_t;
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:51:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl memcpy_s (void *_dest,size_t _numberOfElements,const void *_src,size_t _count);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:28:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl strerror_s(char *_Buf,size_t _SizeInBytes,int _ErrNum);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:47:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\utility:202:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\cstring:61:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:190:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\sec_api/string_s.h:48:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl memmove_s(void *_dest,size_t _numberOfElements,const void _src,size_t _count);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:172:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                extern __declspec(dllimport) char _sys_errlist[1];
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:173:10: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                extern __declspec(dllimport) int _sys_nerr;
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:50:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\assert.h:17:
                In file included from C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\stdlib.h:741:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:147:28: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
                _Ptr = (char
                )_Ptr + _ALLOCA_S_MARKER_SIZE;
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\malloc.h:166:34: error: use of undeclared identifier '_ALLOCA_S_MARKER_SIZE'
                _Memory = (char
                )_Memory - _ALLOCA_S_MARKER_SIZE;
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1150:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP int __cdecl _vswprintf_p(wchar_t * restrict _DstBuf,size_t _MaxCount,const wchar_t * restrict _Format,va_list _ArgList);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1152:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP int __cdecl _vscwprintf_p(const wchar_t * restrict _Format,va_list _ArgList);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1378:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wasctime_s (wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'
                #define _SECIMP __declspec(dllimport)
                ^
                In file included from mainwindow.cpp:1:
                In file included from ./mainwindow.h:4:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets\QMainWindow:1:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qmainwindow.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtWidgets/qtwidgetsglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtGui/qtguiglobal.h:43:
                In file included from C:\Qt\5.14.1\wasm_32\include\QtCore/qglobal.h:142:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\algorithm:643:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\memory:659:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iterator:416:
                In file included from C:\emsdk\emscripten\1.38.27\system\include\libcxx\iosfwd:90:
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\wchar.h:1380:3: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
                _SECIMP errno_t __cdecl _wctime32_s (wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
                ^
                C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\string.h:16:17: note: expanded from macro '_SECIMP'

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Ketan said in Error: Only Win32 target is supported!:

                C:\Qt\5.14.1\wasm_32

                Looks like you're building for Web Assembly?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                K 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Ketan said in Error: Only Win32 target is supported!:

                  C:\Qt\5.14.1\wasm_32

                  Looks like you're building for Web Assembly?

                  K Offline
                  K Offline
                  Ketan
                  wrote on last edited by
                  #8

                  @jsulm Yes, I'm.

                  jsulmJ 1 Reply Last reply
                  0
                  • K Ketan

                    @jsulm Yes, I'm.

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by jsulm
                    #9

                    @Ketan I'm not a Web Assembly expert, but don't you need Emscripten as compiler and not MinGW? Is your Kit configured properly?
                    And I think this windows.h header is not usable in Web Assembly at all.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    K 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Ketan I'm not a Web Assembly expert, but don't you need Emscripten as compiler and not MinGW? Is your Kit configured properly?
                      And I think this windows.h header is not usable in Web Assembly at all.

                      K Offline
                      K Offline
                      Ketan
                      wrote on last edited by Ketan
                      #10

                      @jsulm Not an issue.
                      Yes, we need both emscripten compiler as well as mingw (for windows). Also, I've successfully compiled the test project w/o including windows.h file but failing when included.

                      "And I think this windows.h header is not usable in Web Assembly at all." - I'll look into this.

                      jsulmJ 1 Reply Last reply
                      0
                      • K Ketan

                        @jsulm Not an issue.
                        Yes, we need both emscripten compiler as well as mingw (for windows). Also, I've successfully compiled the test project w/o including windows.h file but failing when included.

                        "And I think this windows.h header is not usable in Web Assembly at all." - I'll look into this.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by jsulm
                        #11

                        @Ketan I don't think you can use windows.h header in Web Assembly apps as it is for win32 APIs.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        K 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Ketan I don't think you can use windows.h header in Web Assembly apps as it is for win32 APIs.

                          K Offline
                          K Offline
                          Ketan
                          wrote on last edited by
                          #12

                          @jsulm Okay!

                          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