-
April 11th, 2016, 01:12 PM
#1
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.
-
April 11th, 2016, 02:10 PM
#2
Re: Visual C++ 2015 search path not working
Originally Posted by Freiza
...
#include "QtWidgets/qapplication.h"
It cannot find QtWidgets directory.
And what is the exact path for "QtWidgets/qapplication.h"?
Victor Nijegorodov
-
April 11th, 2016, 07:52 PM
#3
Re: Visual C++ 2015 search path not working
Originally Posted by VictorN
And what is the exact path for "QtWidgets/qapplication.h"?
C:\Qt\Qt5.6.0\5.6\msvc2015_64\include
-
April 12th, 2016, 08:35 AM
#4
Re: Visual C++ 2015 search path not working
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?
Victor Nijegorodov
-
April 12th, 2016, 11:25 AM
#5
Re: Visual C++ 2015 search path not working
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.
-
April 13th, 2016, 12:14 PM
#6
Re: Visual C++ 2015 search path not working
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?
-
April 13th, 2016, 01:46 PM
#7
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.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
April 13th, 2016, 01:55 PM
#8
Re: Visual C++ 2015 search path not working
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|