Qt C1083 Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack error: c1083: cannot open include file: 'qapplication': no such file or directory Overflow the company Business Learn more about hiring developers or posting ads with us cannot open source file qtwidgets qapplication visual studio Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a
Qt Cannot Open Source File
community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why does QT not recognize my header file? cannot open include file No such file
Qt No Such File Or Directory
or directory up vote 9 down vote favorite I have the below in my .pro file and I have files that #include "headerhere". For example: #include "StdAfx.h". However I'm getting an error Cannot open include file: 'StdAfx.h': No such file or directory. I get the same error whether I use #include "StdAfx.h" or #include "Shared/StdAfx.h". This is extremely frustrating and I can't do any actual work unless QT starts recognizing my qtgui/qapplication no such file or directory headers. I've found online no solution for this. What is going on? .pro file has: HEADERS += ibproject.h \ Shared/StdAfx.h \ Shared/TwsSocketClientErrors.h \ Shared/TagValue.h \ Shared/shared_ptr.h \ Shared/ScannerSubscription.h \ Shared/OrderState.h \ Shared/Order.h \ Shared/IBString.h \ Shared/HScrollListBox.h \ Shared/Execution.h \ Shared/EWrapper.h \ Shared/EClientSocketBaseImpl.h \ Shared/EClientSocketBase.h \ Shared/EClient.h \ Shared/Contract.h \ Shared/CommonDefs.h \ Shared/CommissionReport.h \ SocketClient/src/EClientSocket.h ewrappersubclass.h INCLUDEPATH += $$PWD/SocketClient DEPENDPATH += $$PWD/SocketClient EDIT: why I am getting downvotes? This is a legitimate problem I'm having c++ qt share|improve this question edited Apr 27 '13 at 23:24 asked Apr 27 '13 at 22:29 Terence Chow 2,351102962 So which directory has "stdafx.h"? –john Apr 27 '13 at 22:35 @john it's currently in shared/stdafx.h but to be honest I've copied it and pasted in both the root and the shared folder just to test if it was because I had some syntax wrong. Nope, it doesn't recognize it even when its in both folders –Terence Chow Apr 27 '13 at 22:37 2 I don't know QT but have you tried adding the directory with stdafx.h to INCLUDEPATH, something like INCLUDEPATH += $$PWD –john Apr 27 '13 at 22:40 @john I've tried including both $$PWD and $$PWD/Shared but it didn't help –Terence Chow Apr 27 '13 at 22:54
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post:
Qapplication: No Such File Or Directory #include
click the register link above to proceed. To start viewing messages, select the qt download forum that you want to visit from the selection below. Welcome to Qt Centre. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Over 90 percent of questions asked here gets answered. If you are looking for information about Qt related issue — register and http://stackoverflow.com/questions/16257521/why-does-qt-not-recognize-my-header-file-cannot-open-include-file-no-such-file post your question. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join http://www.qtcentre.org/threads/53157-C1083-Cannot-open-include-file-QApplication our community today! If you have any problems with the registration process or your account login, please contact us. + Reply to Thread Results 1 to 9 of 9 Thread: C1083: Cannot open include file: 'QApplication' Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 6th February 2013,00:35 #1 Guett_31 View Profile View Forum Posts View Blog Entries View Articles Novice Join Date Feb 2013 Location San Diego Posts 37 Thanks 14 Thanked 7 Times in 7 Posts Qt products Platforms C1083: Cannot open include file: 'QApplication' Hello, I'm very new to Qt. I just installled Qt5.0.0 & MS Visual C++ Comilper 10.0 on my compuer (running Win7) I tried to compile and run a few programs from the Qt Creator Examples. They work. Then, I created a very simple project using "Empty Qt project" from Qt Creator. The project was created at the default location "C:\Qt\Qt5.0.0\Tools\QtCreator\bin" I just added one main.cpp source file with the following code: Qt Code: Switch view #include
error: C1083: Cannot open include file: 'QtPrintSupport': No such file or directoryReturn to overview November 13, 2013, 13:44by Lucas I followed the tutorial for setting up QCustomPlot, but I am getting this "error: C1083: Cannot open include file: 'QtPrintSupport': No such file or directory" error anyone knows why? November 13, 2013, 14:39by Mike http://www.qcustomplot.com/index.php/support/forum/184 Goza I'm using Qt 5.1.1 and Creator 2.8.1. To get QCustomPlot to work http://answers.opencv.org/question/53266/error-c1083-cannot-open-include-file-opencvcvh-no-such-file-or-directory-opencv30/ on my machine, I had to mod the qcustomplot.h. I changed "#include
error asked 2015-01-18 07:40:43 -0500 sid 46 ●1 ●3 ●8 I successfully compiled opencv 3.0 with extra modules using cmake . after setting up project for visual studio 2012 windows8 c++ i get the error c1083: cannot open include file opencv\cv.h Even though the intellisense shows opencv and opencv2 folders , but whenever i build it gives me this error. i setup correct system path and everything . Please help. Thank in advance edit retag flag offensive close merge delete Comments1btw, code that requires the old c-api, might be horribly outdated.berak( 2015-01-18 07:49:04 -0500 )editAfaik it will be one hell of a job to get th 3.0 API configured with old deprecated code ... what code are you trying to build?StevenPuttemans( 2015-01-18 07:57:53 -0500 )editsimple webcam video stream :#include