Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt4.8.4 release nmake fatal error U1077



  • Hello! I want to compile Qt4.8.4 (I know there are better versions, but I want this specific version for a project). The command nmake compiles without errors for the debug version. The release version however, exits with code U1077. I'm posting an image describing the errors:

    alt text

    nmake runs in x86_x64 Cross Tools Command Prompt for VS 2019 in Administration mode

    The files where the errors occured are:
    pcre_tables.cpp
    pcre_ucp_searchfuncs.cpp
    pcre_xclass.cpp

    For example, these are the errors for pcre_ucp_searchfuncs.cpp:
    pcre_ucp_searchfuncs.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(31): error C2039: 'int_least8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(31): error C2873: 'int_least8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(32): error C2039: 'int_least16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(32): error C2873: 'int_least16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(33): error C2039: 'int_least32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(33): error C2873: 'int_least32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(34): error C2039: 'int_least64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(34): error C2873: 'int_least64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(35): error C2039: 'uint_least8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(35): error C2873: 'uint_least8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(36): error C2039: 'uint_least16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(36): error C2873: 'uint_least16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(37): error C2039: 'uint_least32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(37): error C2873: 'uint_least32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(38): error C2039: 'uint_least64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(38): error C2873: 'uint_least64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(40): error C2039: 'int_fast8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(40): error C2873: 'int_fast8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(41): error C2039: 'int_fast16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(41): error C2873: 'int_fast16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(42): error C2039: 'int_fast32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(42): error C2873: 'int_fast32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(43): error C2039: 'int_fast64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(43): error C2873: 'int_fast64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(44): error C2039: 'uint_fast8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(44): error C2873: 'uint_fast8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(45): error C2039: 'uint_fast16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(45): error C2873: 'uint_fast16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(46): error C2039: 'uint_fast32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(46): error C2873: 'uint_fast32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(47): error C2039: 'uint_fast64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(47): error C2873: 'uint_fast64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(49): error C2039: 'intmax_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(49): error C2873: 'intmax_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(51): error C2039: 'uintmax_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(51): error C2873: 'uintmax_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(65): error C2039: 'int_least8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(65): error C2873: 'int_least8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(66): error C2039: 'int_least16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(66): error C2873: 'int_least16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(67): error C2039: 'int_least32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(67): error C2873: 'int_least32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(68): error C2039: 'int_least64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(68): error C2873: 'int_least64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(69): error C2039: 'uint_least8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(69): error C2873: 'uint_least8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(70): error C2039: 'uint_least16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(70): error C2873: 'uint_least16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(71): error C2039: 'uint_least32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(71): error C2873: 'uint_least32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(72): error C2039: 'uint_least64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(72): error C2873: 'uint_least64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(74): error C2039: 'int_fast8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(74): error C2873: 'int_fast8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(75): error C2039: 'int_fast16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(75): error C2873: 'int_fast16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(76): error C2039: 'int_fast32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(76): error C2873: 'int_fast32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(77): error C2039: 'int_fast64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(77): error C2873: 'int_fast64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(78): error C2039: 'uint_fast8_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(78): error C2873: 'uint_fast8_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(79): error C2039: 'uint_fast16_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(79): error C2873: 'uint_fast16_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(80): error C2039: 'uint_fast32_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(80): error C2873: 'uint_fast32_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(81): error C2039: 'uint_fast64_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(81): error C2873: 'uint_fast64_t': symbol cannot be used in a using-declaration
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(83): error C2039: 'intmax_t': is not a member of 'global namespace'' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(83): error C2873: 'intmax_t': symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(85): error C2039: 'uintmax_t': is not a member of 'global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\cstdint(85): error C2873: 'uintmax_t': symbol cannot be used in a using-declaration


  • Lifetime Qt Champion

    I'm pretty sure Qt4 is not compilable with MSVC2019 without any modifications to the Qt source code.



  • Thank you for the answer! I'm willing to change the source code if needed. Do you know what these modifications are? Or if there is some kind of unofficial patch? It seems strange to me that the debug version worked just fine, but the release version is having trouble. hmmm....


  • Lifetime Qt Champion

    No I don't have a patch and not aware of one - you have to fix it by your own.


  • Lifetime Qt Champion

    @PKan Do you have to use MSVC2019? If not use older compiler - it would be way easier than patching Qt...


Log in to reply