[SOLVED] I get an IDE warnings such as "cstring: no such file or directory" but the project compiles just fine. Also, complete does not work. Qt Crea
I use QtCreator 2.4.1 on Ubuntu, C++ projects with my own makefiles.
I've suddenly started getting the warnings such as "cstring: no such file or directory" on the line #include<cstring>. I get such warnings on every single #include line in every header file. These are IDE warnings as my #include lines are underscored but compiler does not give any warnings. So the projects are compiled and build just fine but the warnings are plain annoying.
Could someone help me with this? TIA!
There is something wrong: Ctrl-Space Complete does not work. I do not think I've changed the environment.
if control space is not working then this means that Qt is not able to find it.
please check ur project settings.
u might have missed out some includes.
Is it in Projects->Build Settings->Build Environment? I did not delete anything from there, it used to work few days ago.
The problem is the same for four projects that I have in the session.
You are using your own Makefiles as in a "generic project"? If so then Creator will not pick up include pathes from the project and you need to pass them via one of the files we provide when opening the project for the first time.
Creator will pick up default pathes from the compiler you selected (Project->Build Settings->Tool chain), so make sure you have the correct one there.
I hope this help.
Right, I am using my own Makefiles with make not qmake. I created my own *.pro files. Complete works for my own classes but not for the C++ classes.
There is Options->Build and run->Tool Chain - it correctly auto detected g++ and path to it.
Where do I set the path to include files?
You can set include pathes in your .pro-file.
The default compiler include pathes are extracted by Creator from gcc by running "COMPILERPATH -xc++ -E -v -".
How do I set include paths in the *.pro file? I cannot find the syntax in the documentation. My *.pro file looks like this:
TEMPLATE = app
CONFIG += console
CONFIG -= qt
[Edit: Wrapped in @ tags to preserve formatting. -mlong]
INCLUDEPATH += some/dir some/other/dir
I see thank you!