The error cannot open the source file "..."

I am using VS2010 (downloaded via dreampark), and although I can open the #include file by right-clicking it and clicking on Open Document, it complains: “Error cannot open the source file” ... ”, which seems rather absurd. I am using Qwt with Qt this time and I have a problem:

#include <qwt_counter.h> 
#include <qwt_plot.h>

(And I use "<>"); not sure how to make them display correctly in the code above.

Thanks in advance.

+3
source share
3 answers

, <> . MSVC , #include , , , , include. <>, - .

. http://msdn.microsoft.com/en-us/library/36k2cdd4.aspx.

, - .

, , include , , " ":

, makefile ( , Qt qmake VS), make , , make .

+9

, , , " " ?

→ → c/++ → .

, , ( ),

#include <path_to_file_1/qwt_counter.h>
#include <path_to_file_2/qwt_plot.h>

[] , , [/]

+3

It turned out that there was a circular binding, and I had all my code in the .h file. I split it and added the corresponding .cpp file, now everything works fine.

0
source

Source: https://habr.com/ru/post/1748535/


All Articles