Hi,

I have a solution( i.e. workspace) which includes 3 projects.
Some classes ( so files ) are common in these projects. I have grouped them in a single folder called 'Common'. Therefore my folder view is like following.

C:\MyWorkspace
C:\MyWorkspace\Project1
C:\MyWorkspace\Project2
C:\MyWorkspace\Project3
C:\MyWorkspace\Common

In each C:\MyWorkspace\ProjectX folder contains a file 'stdafx.h'. Any .cpp file which is in Common directory has a #include "stdafx.h" line...

In compilation, the compiler gives "No such file... ( stdafx.h )" error. This may be interpreted as natural, since 'stdafx.h' is not in the same directory. It is in the directory of 'C:\MyWorkspace\ProjectX'. However I can not write "#include ..\ProjectX" because it is a common file shared by three projects..

Any suggestion ?

Note: If I remove this 'include' line then compiler gives 'unexpected end of line while looking precompiled header file'. I don't want to change 'Use Precompiled Headers' options ( or 'Automatically Generate Precompiled Hedaers' ) because my project is so large and compilation takes so long.