[SOLVED] How to setup autocomplete when using different compiler



  • Specs:

    Ubuntu 12.04 no build-essential installed, I'm using my own GCC installed an arbitrary location.
    Qt Creator 3.0.0
    I'm using SCons to build

    How I created a project:
    Qt Creator > New Project > Import Project >Import Existing Project

    My compiler finds all of its std header files, but in Qt Creator when I for example #include <iostream> and hover over it, Qt Creator says, iostream: No such file or directory. Hence code completion doesn't work.

    How to I fix the code completion?

    Solution

    Add the path to the std library files in the file project_name.includes


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.