tl;dr:
0. Get the latest prebuilt version for Win: version 0.8 (3 years old :/)
1. Put this somewhere into you CMakeLists.txt
set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE "C:\\include-what-you-use\\bin\\include-what-you-use.exe")
2. Enjoy the overflowing build-output for your legacy-project.
‘include what you use’ sounds like a good policy to avoid unnecessary artifacts/buildtime/clutter. More than a decade ago some Java-IDE hat something like this (suggestions for (missing) includes), PyCharm does it for Python-import, the ReSharper-plugin for VisualStudio could do this as well really efficiently for huge C++ code bases. But this is a CMake-based project for windows. What to do now?
0. Get ‘include-what-you-use’ from their page and extract to some directory.
1. Figure out how to use an OSS project on Windows: check this page as example for sparse documentation! As well: the projects page. Never mind … why are there no simple examples for all supported platforms?
2. Play around until you get something, which is accepted from CMake and Ninja .. jk.
2. Set this to the CMakeLists.txt of your choice:
set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE "C:\\include-what-you-use\\bin\\include-what-you-use.exe")
Additional help on SO: https://stackoverflow.com/questions/30951492/how-to-use-the-tool-include-what-you-use-together-with-cmake-to-detect-unused-he
Good additional page.
problems (WIP):
– false positives (forward include in .h, but the .cpp includes it and also needs it). If you follow the advice, it won’t build.
– rewriting Qt-includes: from “- #include <QtWidgets/QMessageBox> // lines 19-19” to “#include “qmessagebox.h” // for QMessageBox” -> definitely not good!
– Qt (especially in .moc from ui-files) reports false positives for header-files
Applying it on one of my tiny toy-projects gives the following output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 |
22:52:15: Running steps for project BowlingScoreBoard... 22:52:15: Starting: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build . --target all [1/8 0.6/sec] Automatic MOC and UIC for target BowlingScoreBoard [2/8 0.3/sec] Building CXX object CMakeFiles\BowlingScoreBoard.dir\BSB_GameData.cpp.obj Warning: include-what-you-use reported diagnostics: error: unknown argument: '-std:c++17' error: no such file or directory: '/nologo' error: no such file or directory: '/TP' error: no such file or directory: '/DWIN32' error: no such file or directory: '/D_WINDOWS' error: no such file or directory: '/W3' error: no such file or directory: '/GR' error: no such file or directory: '/EHsc' error: no such file or directory: '/MDd' error: no such file or directory: '/Zi' error: no such file or directory: '/Ob0' error: no such file or directory: '/Od' error: no such file or directory: '/RTC1' error: no such file or directory: '/showIncludes' error: no such file or directory: '/FoCMakeFiles\BowlingScoreBoard.dir\BSB_GameData.cpp.obj' error: no such file or directory: '/FdCMakeFiles\BowlingScoreBoard.dir\' error: no such file or directory: '/FS' In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_GameData.cpp:16: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_GameData.h:18: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QVector:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qvector.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qalgorithms.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:5: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\yvals_core.h:374:2: error: STL1000: Unexpected compiler version, expected Clang 8 or newer. #error STL1000: Unexpected compiler version, expected Clang 8 or newer. ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_GameData.cpp:16: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_GameData.h:18: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QVector:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qvector.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qalgorithms.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\cstddef:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xtr1common:181:5: error: use of undeclared identifier 'char16_t' char16_t, char32_t, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long>; ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_GameData.cpp:16: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_GameData.h:18: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QVector:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qvector.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qalgorithms.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:288:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Unfancy(_Ptrty _Ptr) { // converts from a fancy pointer to a plain pointer ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_GameData.cpp:16: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_GameData.h:18: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QVector:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qvector.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qalgorithms.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:78: error: '_Ty' does not refer to a value struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:797:17: note: declared here template <class _Ty> ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:84: error: expected class name struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:803:86: error: '_Ty' does not refer to a value _INLINE_VAR constexpr bool is_trivially_destructible_v = __is_trivially_destructible(_Ty); ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:802:17: note: declared here template <class _Ty> ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_GameData.cpp:16: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_GameData.h:18: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QVector:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qvector.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qalgorithms.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:367:22: error: use of undeclared identifier 'char16_t' class numeric_limits<char16_t> : public _Num_int_base { // limits for type char16_t ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:412:22: error: use of undeclared identifier 'char32_t' class numeric_limits<char32_t> : public _Num_int_base { // limits for type char32_t ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_GameData.cpp:16: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_GameData.h:18: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QVector:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qvector.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qalgorithms.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:12: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:42:15: error: deduced return types are a C++14 extension constexpr decltype(auto) operator()(_Args&&... _Vals) { // forward function call operator ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:216:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Adl_verify_range( ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:257:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:297:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_unverified(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:349:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, const _Diff _Off) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:369:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, _Diff) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:415:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Iter& _It, const _UIter& _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:435:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Ty*& _It, _Ty* const _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:483:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Idl_distance(const _Iter& _First, const _Iter& _Last) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:490:16: error: no viable conversion from returned value of type 'std::_Distance_unknown' to function return type 'int' return _Distance_unknown{}; ^~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:863:11: error: deduced return types are a C++14 extension constexpr decltype(auto) _Operator_arrow(_Iterator&& _Target, false_type) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_GameData.h should add these lines: #include <stddef.h> // for size_t #include "qstring.h" // for QString #include "qvector.h" // for QVector C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_GameData.h should remove these lines: - #include <QtCore/QString> // lines 19-19 - #include <QtCore/QVector> // lines 18-18 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_GameData.h: #include <stddef.h> // for size_t #include <tuple> // for tuple #include "qstring.h" // for QString #include "qvector.h" // for QVector --- (C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_GameData.cpp has correct #includes/fwd-decls) [3/8 0.4/sec] Building CXX object CMakeFiles\BowlingScoreBoard.dir\BSB_Controller.cpp.obj Warning: include-what-you-use reported diagnostics: error: unknown argument: '-std:c++17' error: no such file or directory: '/nologo' error: no such file or directory: '/TP' error: no such file or directory: '/DWIN32' error: no such file or directory: '/D_WINDOWS' error: no such file or directory: '/W3' error: no such file or directory: '/GR' error: no such file or directory: '/EHsc' error: no such file or directory: '/MDd' error: no such file or directory: '/Zi' error: no such file or directory: '/Ob0' error: no such file or directory: '/Od' error: no such file or directory: '/RTC1' error: no such file or directory: '/showIncludes' error: no such file or directory: '/FoCMakeFiles\BowlingScoreBoard.dir\BSB_Controller.cpp.obj' error: no such file or directory: '/FdCMakeFiles\BowlingScoreBoard.dir\' error: no such file or directory: '/FS' In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_Controller.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:5: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\yvals_core.h:374:2: error: STL1000: Unexpected compiler version, expected Clang 8 or newer. #error STL1000: Unexpected compiler version, expected Clang 8 or newer. ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_Controller.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\cstddef:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xtr1common:181:5: error: use of undeclared identifier 'char16_t' char16_t, char32_t, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long>; ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_Controller.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:288:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Unfancy(_Ptrty _Ptr) { // converts from a fancy pointer to a plain pointer ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_Controller.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:78: error: '_Ty' does not refer to a value struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:797:17: note: declared here template <class _Ty> ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:84: error: expected class name struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:803:86: error: '_Ty' does not refer to a value _INLINE_VAR constexpr bool is_trivially_destructible_v = __is_trivially_destructible(_Ty); ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:802:17: note: declared here template <class _Ty> ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_Controller.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:367:22: error: use of undeclared identifier 'char16_t' class numeric_limits<char16_t> : public _Num_int_base { // limits for type char16_t ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:412:22: error: use of undeclared identifier 'char32_t' class numeric_limits<char32_t> : public _Num_int_base { // limits for type char32_t ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_Controller.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:12: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:42:15: error: deduced return types are a C++14 extension constexpr decltype(auto) operator()(_Args&&... _Vals) { // forward function call operator ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:216:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Adl_verify_range( ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:257:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:297:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_unverified(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:349:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, const _Diff _Off) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:369:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, _Diff) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:415:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Iter& _It, const _UIter& _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:435:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Ty*& _It, _Ty* const _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:483:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Idl_distance(const _Iter& _First, const _Iter& _Last) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:490:16: error: no viable conversion from returned value of type 'std::_Distance_unknown' to function return type 'int' return _Distance_unknown{}; ^~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:863:11: error: deduced return types are a C++14 extension constexpr decltype(auto) _Operator_arrow(_Iterator&& _Target, false_type) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_Controller.h should add these lines: #include "qobject.h" // for QObject #include "qobjectdefs.h" // for Q_OBJECT, signals, slots #include "qstring.h" // for QString template <class T> class QVector; C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_Controller.h should remove these lines: - #include <QtCore/QObject> // lines 21-21 - #include <QtCore/QVector> // lines 22-22 - #include <memory> // lines 25-25 - #include "BSB_GameData.h" // lines 18-18 - #include "BSB_UdpListener.h" // lines 17-17 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_Controller.h: #include <tuple> // for tuple #include "qobject.h" // for QObject #include "qobjectdefs.h" // for Q_OBJECT, signals, slots #include "qstring.h" // for QString template <class T> class QVector; --- C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_Controller.cpp should add these lines: #include <QtCore/qglobal.h> // for qDebug #include "qdebug.h" // for QDebug #include "qregexp.h" // for QRegExp C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_Controller.cpp should remove these lines: - #include <QtCore/QDebug> // lines 18-18 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_Controller.cpp: #include "BSB_Controller.h" #include <QtCore/qglobal.h> // for qDebug #include "qdebug.h" // for QDebug #include "qregexp.h" // for QRegExp --- [4/8 0.5/sec] Building CXX object CMakeFiles\BowlingScoreBoard.dir\BowlingScoreBoard_autogen\mocs_compilation.cpp.obj [5/8 0.6/sec] Building CXX object CMakeFiles\BowlingScoreBoard.dir\main.cpp.obj Warning: include-what-you-use reported diagnostics: error: unknown argument: '-std:c++17' error: no such file or directory: '/nologo' error: no such file or directory: '/TP' error: no such file or directory: '/DWIN32' error: no such file or directory: '/D_WINDOWS' error: no such file or directory: '/W3' error: no such file or directory: '/GR' error: no such file or directory: '/EHsc' error: no such file or directory: '/MDd' error: no such file or directory: '/Zi' error: no such file or directory: '/Ob0' error: no such file or directory: '/Od' error: no such file or directory: '/RTC1' error: no such file or directory: '/showIncludes' error: no such file or directory: '/FoCMakeFiles\BowlingScoreBoard.dir\main.cpp.obj' error: no such file or directory: '/FdCMakeFiles\BowlingScoreBoard.dir\' error: no such file or directory: '/FS' In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\main.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:5: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\yvals_core.h:374:2: error: STL1000: Unexpected compiler version, expected Clang 8 or newer. #error STL1000: Unexpected compiler version, expected Clang 8 or newer. ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\main.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\cstddef:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xtr1common:181:5: error: use of undeclared identifier 'char16_t' char16_t, char32_t, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long>; ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\main.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:288:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Unfancy(_Ptrty _Ptr) { // converts from a fancy pointer to a plain pointer ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\main.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:78: error: '_Ty' does not refer to a value struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:797:17: note: declared here template <class _Ty> ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:84: error: expected class name struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:803:86: error: '_Ty' does not refer to a value _INLINE_VAR constexpr bool is_trivially_destructible_v = __is_trivially_destructible(_Ty); ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:802:17: note: declared here template <class _Ty> ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\main.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:367:22: error: use of undeclared identifier 'char16_t' class numeric_limits<char16_t> : public _Num_int_base { // limits for type char16_t ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:412:22: error: use of undeclared identifier 'char32_t' class numeric_limits<char32_t> : public _Num_int_base { // limits for type char32_t ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\main.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:12: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:42:15: error: deduced return types are a C++14 extension constexpr decltype(auto) operator()(_Args&&... _Vals) { // forward function call operator ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:216:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Adl_verify_range( ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:257:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:297:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_unverified(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:349:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, const _Diff _Off) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:369:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, _Diff) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:415:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Iter& _It, const _UIter& _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:435:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Ty*& _It, _Ty* const _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:483:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Idl_distance(const _Iter& _First, const _Iter& _Last) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:490:16: error: no viable conversion from returned value of type 'std::_Distance_unknown' to function return type 'int' return _Distance_unknown{}; ^~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:863:11: error: deduced return types are a C++14 extension constexpr decltype(auto) _Operator_arrow(_Iterator&& _Target, false_type) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/main.cpp should add these lines: #include "qapplication.h" // for QApplication C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/main.cpp should remove these lines: - #include <QtWidgets/QApplication> // lines 18-18 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/main.cpp: #include "BSB_MainWindow.h" // for BSB_MainWindow #include "qapplication.h" // for QApplication --- [6/8 0.6/sec] Building CXX object CMakeFiles\BowlingScoreBoard.dir\BSB_UdpListener.cpp.obj Warning: include-what-you-use reported diagnostics: error: unknown argument: '-std:c++17' error: no such file or directory: '/nologo' error: no such file or directory: '/TP' error: no such file or directory: '/DWIN32' error: no such file or directory: '/D_WINDOWS' error: no such file or directory: '/W3' error: no such file or directory: '/GR' error: no such file or directory: '/EHsc' error: no such file or directory: '/MDd' error: no such file or directory: '/Zi' error: no such file or directory: '/Ob0' error: no such file or directory: '/Od' error: no such file or directory: '/RTC1' error: no such file or directory: '/showIncludes' error: no such file or directory: '/FoCMakeFiles\BowlingScoreBoard.dir\BSB_UdpListener.cpp.obj' error: no such file or directory: '/FdCMakeFiles\BowlingScoreBoard.dir\' error: no such file or directory: '/FS' In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_UdpListener.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:5: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\yvals_core.h:374:2: error: STL1000: Unexpected compiler version, expected Clang 8 or newer. #error STL1000: Unexpected compiler version, expected Clang 8 or newer. ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_UdpListener.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\cstddef:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xtr1common:181:5: error: use of undeclared identifier 'char16_t' char16_t, char32_t, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long>; ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_UdpListener.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:288:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Unfancy(_Ptrty _Ptr) { // converts from a fancy pointer to a plain pointer ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_UdpListener.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:78: error: '_Ty' does not refer to a value struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:797:17: note: declared here template <class _Ty> ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:84: error: expected class name struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:803:86: error: '_Ty' does not refer to a value _INLINE_VAR constexpr bool is_trivially_destructible_v = __is_trivially_destructible(_Ty); ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:802:17: note: declared here template <class _Ty> ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_UdpListener.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:367:22: error: use of undeclared identifier 'char16_t' class numeric_limits<char16_t> : public _Num_int_base { // limits for type char16_t ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:412:22: error: use of undeclared identifier 'char32_t' class numeric_limits<char32_t> : public _Num_int_base { // limits for type char32_t ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_UdpListener.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:12: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:42:15: error: deduced return types are a C++14 extension constexpr decltype(auto) operator()(_Args&&... _Vals) { // forward function call operator ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:216:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Adl_verify_range( ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:257:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:297:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_unverified(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:349:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, const _Diff _Off) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:369:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, _Diff) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:415:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Iter& _It, const _UIter& _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:435:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Ty*& _It, _Ty* const _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:483:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Idl_distance(const _Iter& _First, const _Iter& _Last) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:490:16: error: no viable conversion from returned value of type 'std::_Distance_unknown' to function return type 'int' return _Distance_unknown{}; ^~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:863:11: error: deduced return types are a C++14 extension constexpr decltype(auto) _Operator_arrow(_Iterator&& _Target, false_type) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_UdpListener.h should add these lines: #include "qglobal.h" // for quint16 #include "qobject.h" // for QObject #include "qobjectdefs.h" // for Q_OBJECT, signals, slots #include "qstring.h" // for QString C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_UdpListener.h should remove these lines: - #include <QtCore/QObject> // lines 17-17 - #include <QtNetwork/QUdpSocket> // lines 18-18 - #include <memory> // lines 21-21 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_UdpListener.h: #include "qglobal.h" // for quint16 #include "qobject.h" // for QObject #include "qobjectdefs.h" // for Q_OBJECT, signals, slots #include "qstring.h" // for QString --- C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_UdpListener.cpp should add these lines: #include <QtCore/qglobal.h> // for qDebug #include "qdebug.h" // for QDebug C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_UdpListener.cpp should remove these lines: - #include <QtCore/QDebug> // lines 18-18 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_UdpListener.cpp: #include "BSB_UdpListener.h" #include <QtCore/qglobal.h> // for qDebug #include "qdebug.h" // for QDebug --- [7/8 0.7/sec] Building CXX object CMakeFiles\BowlingScoreBoard.dir\BSB_MainWindow.cpp.obj Warning: include-what-you-use reported diagnostics: error: unknown argument: '-std:c++17' error: no such file or directory: '/nologo' error: no such file or directory: '/TP' error: no such file or directory: '/DWIN32' error: no such file or directory: '/D_WINDOWS' error: no such file or directory: '/W3' error: no such file or directory: '/GR' error: no such file or directory: '/EHsc' error: no such file or directory: '/MDd' error: no such file or directory: '/Zi' error: no such file or directory: '/Ob0' error: no such file or directory: '/Od' error: no such file or directory: '/RTC1' error: no such file or directory: '/showIncludes' error: no such file or directory: '/FoCMakeFiles\BowlingScoreBoard.dir\BSB_MainWindow.cpp.obj' error: no such file or directory: '/FdCMakeFiles\BowlingScoreBoard.dir\' error: no such file or directory: '/FS' In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_MainWindow.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:5: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\yvals_core.h:374:2: error: STL1000: Unexpected compiler version, expected Clang 8 or newer. #error STL1000: Unexpected compiler version, expected Clang 8 or newer. ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_MainWindow.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\cstddef:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xtr1common:181:5: error: use of undeclared identifier 'char16_t' char16_t, char32_t, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long>; ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_MainWindow.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:7: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xstddef:288:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Unfancy(_Ptrty _Ptr) { // converts from a fancy pointer to a plain pointer ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_MainWindow.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:45: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:78: error: '_Ty' does not refer to a value struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:797:17: note: declared here template <class _Ty> ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:798:84: error: expected class name struct is_trivially_destructible : bool_constant<__is_trivially_destructible(_Ty)> { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:803:86: error: '_Ty' does not refer to a value _INLINE_VAR constexpr bool is_trivially_destructible_v = __is_trivially_destructible(_Ty); ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\type_traits:802:17: note: declared here template <class _Ty> ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_MainWindow.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:9: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:367:22: error: use of undeclared identifier 'char16_t' class numeric_limits<char16_t> : public _Num_int_base { // limits for type char16_t ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\limits:412:22: error: use of undeclared identifier 'char32_t' class numeric_limits<char32_t> : public _Num_int_base { // limits for type char32_t ^ In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard\BSB_MainWindow.cpp:15: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_MainWindow.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_Controller.h:17: In file included from C:\Users\husband-boy\Desktop\coding\BowlingScoreBoard/BSB_UdpListener.h:17: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/QObject:1: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobject.h:46: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qobjectdefs.h:48: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qnamespace.h:43: In file included from C:\Qt\5.15.0\msvc2019_64\include\QtCore/qglobal.h:142: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\algorithm:7: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xmemory:12: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:42:15: error: deduced return types are a C++14 extension constexpr decltype(auto) operator()(_Args&&... _Vals) { // forward function call operator ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:216:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Adl_verify_range( ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:257:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:297:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_unverified(const _Iter& _It) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:349:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, const _Diff _Off) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:369:22: error: 'auto' return without trailing return type; deduced return types are a C++14 extension _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, _Diff) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:415:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Iter& _It, const _UIter& _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:435:16: error: constexpr function's return type 'void' is not a literal type constexpr void _Seek_wrapped(_Ty*& _It, _Ty* const _UIt) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:483:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto _Idl_distance(const _Iter& _First, const _Iter& _Last) { ^ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:490:16: error: no viable conversion from returned value of type 'std::_Distance_unknown' to function return type 'int' return _Distance_unknown{}; ^~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xutility:863:11: error: deduced return types are a C++14 extension constexpr decltype(auto) _Operator_arrow(_Iterator&& _Target, false_type) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_MainWindow.h should add these lines: #include "qmainwindow.h" // for QMainWindow #include "qobjectdefs.h" // for slots, Q_OBJECT #include "qstring.h" // for QString #include "qvector.h" // for QVector class QAction; class QLabel; class QMenu; class QObject; class QWidget; C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_MainWindow.h should remove these lines: - #include <QtWidgets/QLabel> // lines 21-21 - #include <QtWidgets/QMainWindow> // lines 20-20 - #include "BSB_Controller.h" // lines 17-17 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_MainWindow.h: #include <tuple> // for tuple #include "qmainwindow.h" // for QMainWindow #include "qobjectdefs.h" // for slots, Q_OBJECT #include "qstring.h" // for QString #include "qvector.h" // for QVector class QAction; class QLabel; class QMenu; class QObject; class QWidget; namespace Ui { class BSB_MainWindow; } // lines 35-35 --- C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_MainWindow.cpp should add these lines: #include <vcruntime_new.h> // for operator new, operator delete #include "qaction.h" // for QAction #include "qapplication.h" // for qApp #include "qboxlayout.h" // for QHBoxLayout #include "qlabel.h" // for QLabel #include "qmessagebox.h" // for QMessageBox #include "qnamespace.h" // for Modifier::CTRL, Key::Key_A, Key::Key_Q #include "qstatusbar.h" // for QStatusBar class QWidget; C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_MainWindow.cpp should remove these lines: - #include <QtWidgets/QHBoxLayout> // lines 20-20 - #include <QtWidgets/QMessageBox> // lines 19-19 The full include-list for C:/Users/husband-boy/Desktop/coding/BowlingScoreBoard/BSB_MainWindow.cpp: #include "BSB_MainWindow.h" #include <vcruntime_new.h> // for operator new, operator delete #include "qaction.h" // for QAction #include "qapplication.h" // for qApp #include "qboxlayout.h" // for QHBoxLayout #include "qlabel.h" // for QLabel #include "qmessagebox.h" // for QMessageBox #include "qnamespace.h" // for Modifier::CTRL, Key::Key_A, Key::Key_Q #include "qstatusbar.h" // for QStatusBar #include "ui_BSB_MainWindow.h" // for BSB_MainWindow class QWidget; --- [8/8 0.8/sec] Linking CXX executable BowlingScoreBoard.exe LINK : BowlingScoreBoard.exe not found or not built by the last incremental link; performing full link 22:52:25: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited normally. 22:52:25: Elapsed time: 00:10. |
WTF? O_O
For seven files such a huge mess? Just follow the hints from “should add these lines:” and “should remove these lines:”, apply a bit of brainpower.