Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] How to setup autocomplete when using different compiler
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to setup autocomplete when using different compiler

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 669 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    benbalach
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

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