I encounter Error C1081 ("file name too long") when building my code with the VS 2013 Preview C++ compiler , but not with earlier compilers (e.g., VS2012, VS2008, etc.).
I have a project that has been configured with "Additional Include Directories". Per MSDN documentation (http://msdn.microsoft.com/en-us/library/73f9s62w(v=vs.120).aspx) the order of locations in which #include directives are resolved is:
1) Directories containing the source files (i.e., relative to the current directory of the file)
2) The "Additional Include Directories", in the order provided
3) [Not Applicable] Directories in the INCLUDE environment variable
When a file tries to #include a file that is included in one of the "Additional Include Directories", the compiler first tries to find the included file at a path relative to the current location of the file. This path doesn't exist, so I expect the compiler to move on to the "Additional Include Directories", where it should find the file in question.
**This works in earlier compilers, even when invoked from VS 2013 Preview (e.g., by setting the Platform Toolset).** However, when trying to resolve the relative path indicated in step (1), the VS 2013 Preview compiler emits a C1081 Error if the resulting relative path exceeds the 260 character limit (even if the path doesn't exist).