Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. The first errors in Qt Creator

The first errors in Qt Creator

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 952 Views
  • 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.
  • P Offline
    P Offline
    PJS_
    wrote on last edited by
    #1

    As a newbie of Qt Creator, I made a new project (HelloWorld) for the first time. I did not add any code but this Qt Creator give error messages like that.

    :-1: warning: "/usr/bin/clang++" is used by qmake, but "/home/xxx/Qt5.12.2/Tools/QtCreator/libexec/qtcreator/clang/bin/clang" is configured in the kit.
    Please update your kit (Desktop Qt 5.12.2 GCC 64bit) or choose a mkspec for qmake that matches your target environment better.
    /home/xxx/Projects/QT/HelloWorld/main.cpp:7: error: use of undeclared identifier 'a'
    /home/xxx/Projects/QT/HelloWorld/main.cpp:3: warning: unused parameter 'argc'
    /home/xxx/Projects/QT/HelloWorld/main.cpp:3: warning: unused parameter 'argv'
    

    Could you give me any help to solve this problems. Thank you in advance.

    jsulmJ 1 Reply Last reply
    0
    • P PJS_

      As a newbie of Qt Creator, I made a new project (HelloWorld) for the first time. I did not add any code but this Qt Creator give error messages like that.

      :-1: warning: "/usr/bin/clang++" is used by qmake, but "/home/xxx/Qt5.12.2/Tools/QtCreator/libexec/qtcreator/clang/bin/clang" is configured in the kit.
      Please update your kit (Desktop Qt 5.12.2 GCC 64bit) or choose a mkspec for qmake that matches your target environment better.
      /home/xxx/Projects/QT/HelloWorld/main.cpp:7: error: use of undeclared identifier 'a'
      /home/xxx/Projects/QT/HelloWorld/main.cpp:3: warning: unused parameter 'argc'
      /home/xxx/Projects/QT/HelloWorld/main.cpp:3: warning: unused parameter 'argv'
      

      Could you give me any help to solve this problems. Thank you in advance.

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

      @PJS_ Are you on MacOS?

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

      P 1 Reply Last reply
      0
      • jsulmJ jsulm

        @PJS_ Are you on MacOS?

        P Offline
        P Offline
        PJS_
        wrote on last edited by
        #3

        @jsulm
        Ubuntu 18.04.5 LTS (Bionic Beaver)
        Qt Creator 4.8.2

        jsulmJ 1 Reply Last reply
        0
        • P PJS_

          @jsulm
          Ubuntu 18.04.5 LTS (Bionic Beaver)
          Qt Creator 4.8.2

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

          @PJS_ Then your Kit is configured wrongly.
          On Linux GCC is used as compiler, not clang.
          Please follow first https://doc.qt.io/qt-5/linux.html - install needed dependencies and then check the Kit (make sure gcc/g++ are set as C/C++ compiler).

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

          1 Reply Last reply
          3

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved