Visual C++ 2015 search path not working
Even after including .h folder to Projects>C++ General>Additional Include Directory it cannot detect .h files.
I included, C:\Qt\Qt5.6.0\5.6\msvc2015_64\include to additional include directory
And Wrote the code in c++,
#include "QtWidgets/qapplication.h"
It cannot find QtWidgets directory.
Re: Visual C++ 2015 search path not working
Quote:
Originally Posted by
Freiza
...
#include "QtWidgets/qapplication.h"
It cannot find QtWidgets directory.
And what is the exact path for "QtWidgets/qapplication.h"?
Re: Visual C++ 2015 search path not working
Quote:
Originally Posted by
VictorN
And what is the exact path for "QtWidgets/qapplication.h"?
C:\Qt\Qt5.6.0\5.6\msvc2015_64\include
Re: Visual C++ 2015 search path not working
Quote:
Originally Posted by
Freiza
C:\Qt\Qt5.6.0\5.6\msvc2015_64\include
So, if you would type in explorer
Code:
C:\Qt\Qt5.6.0\5.6\msvc2015_64\include\QtWidgets/qapplication.h
then got the qapplication.h file opened?
Re: Visual C++ 2015 search path not working
Quote:
Originally Posted by
VictorN
So, if you would type in explorer
Code:
C:\Qt\Qt5.6.0\5.6\msvc2015_64\include\QtWidgets/qapplication.h
then got the qapplication.h file opened?
Yes it does open.
Btw I tried all combinations QtWidgets/qapplication.h , QtWidgets\qapplication.h and QtWidgets\\qapplication.h
using angle brackets and double quotes.
Re: Visual C++ 2015 search path not working
Quote:
Originally Posted by
VictorN
So, if you would type in explorer
Code:
C:\Qt\Qt5.6.0\5.6\msvc2015_64\include\QtWidgets/qapplication.h
then got the qapplication.h file opened?
Today, I noticed that if I change my solution configuration from debug to release it detects .h file and when I switch to debug configuration it again stops detecting the file.
Now, what should I do?
Re: Visual C++ 2015 search path not working
Properties are specific to a configuration. If you are building for release and debug you need to change the properties of both configurations as required.
At the top of Project/Properties it states for which configuration/platform the properties apply. You can also use the Configuration Manager by pressing the right top button.
Re: Visual C++ 2015 search path not working
Quote:
Originally Posted by
2kaud
Properties are specific to a configuration. If you are building for release and debug you need to change the properties of both configurations as required.
At the top of Project/Properties it states for which configuration/platform the properties apply. You can also use the Configuration Manager by pressing the right top button.
Dear Sir, I just figured that out this thing just a minute before you commented.
This thing was a nightmare to me I even reinstalled visual studio thinking it was a bug.
Thank You very much. I feel so much relieved. Thank You