Hi everyone,

The application I develop consists of several computational models, each of them represented by a specific class ("class alpha", "class beta", "class gamma") derived from "class module". They implement for example the function "compute()".

Now I want to structure my code in that way too : the directory "Application/.../modules" contains the files 'module.cpp' & 'module.h' for the base class "module", and sub-directories "Alpha", "Beta", "Gamma" each containing each their own 'module.cpp' & 'module.h'.

Now when I configure my projet file for "Application/.../modules", containing as well a "main.cpp" for tests, linker problems occur. These problems are due to the fact that the files in different directories have the same name. If I add an '1,2,.." to the '.cpp' files, the problem is solved.

Does anyone know this problem from VC2008, or is this a problem in my configuration ? To keep the same filename in different directories, I tried the following :

- specify sub-directory for the inclusion of the "module.h" to prevent ambiguities (#include "Alpha/module.h" instead of #include "module.h")
- do not point to include directories "Alpha", "Beta", "Gamma" but only to their parent directory (I verified the xml-contents of the project file)

Problem not solved... does anyone have an idea? I cannot believe Microsoft not thinking of these issues...

Thanks !!!!