+ 1

Strange behaviour of include which I am not getting

Hi I habe three projects in a solution. Out of this three project, first project is having additional include directory from third party code. Same project has two headers say iMain.h and main.h as well as stdafx.h for precompile purpose... stdafx.h is including the required .h of third party code. That have one typedef which I am interested to use in my first project. Strange behaviour is that I can use that typedef in main.h but not in imain.h.... only difference I could see is that imain.h is interface having all pure virtual function where as main.h has all methods as non virtual. But this should not stop me using typedef from that third-party codes. I am surprised as including stdafx.h into imain.h as says that the third party header is not find by solution where as it works fine in main.h... no specific setting on .h property and project setting is common for imain.h and main.h.... I have visual studio 2015. Feel free to ask for clarification if question is not clear.

8th Oct 2020, 6:45 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Answer
0
i dont know
11th Oct 2020, 12:18 AM
FaizFikri
FaizFikri - avatar