Qt Creator use another GCC Version located in another Place

前端 未结 1 639
Happy的楠姐
Happy的楠姐 2021-01-14 23:13

I installed a gcc 4.8.0 in the /opt folder. I put in my PATH, so when i do a gcc/g++ -v it returns to me the 4.8.0 version. But when i go to the QT Creator and compile my pr

相关标签:
1条回答
  • 2021-01-14 23:50

    In Qt Creator go in

    Tools -> Options -> Build&Run -> Compilers
    

    then add a new gcc compiler.

    Then go into

    Tools -> Options -> Build&Run -> Kits
    

    and change the compiler in your current kit (usually called "Desktop").

    You may need latest versions of Qt Creator with "kits" (available from Qt Creator 2.6).

    0 讨论(0)
提交回复
热议问题