I only had a structure that was 4 folders deep(from the same directory as monkey2) and one of the filenames was far too long (261 characters).
I found that the actual file name was 125 characters long which, combined with the path of 136 characters, causes an error.
Temporary Fix
Moving the project folder higher up the chain I was able to finally compile the project.
Helpful Findings
Filenames of the actual project (not modules) are reasonably lengthed.
Filenames of imported module files are incredibly long, 125 characters long
Subfolder deepness is (speculatively) not a part of the problem.
Primary problem: Files imported from a module are extremely long
Combining problem: Because full paths are being used, the deeper the root of the target project is, the primary problem is intensified.
Extra Info
Click To View
As stated in the main problems, I think somehow using relative paths instead of full paths will heavily add room to filenames. But the most applicable solution would be to heavily shorten files imported via modules. Being over 100 characters long for the name alone is almost unusable in the compiler.
Environment:
- Windows 10
- MSVC 2017
- x64 build
- Debug & Release
**Error message:** [c1xx: fatal error C1081 **file name too long**](https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1081)
Generated files:
![image](https://user-images.githubusercontent.com/29788070/36402875-928df290-159e-11e8-96be-49c72535c9c1.png)
Original Author: Ghouly-The-Ghost
Problem
I only had a structure that was 4 folders deep(from the same directory as monkey2) and one of the filenames was far too long (261 characters).
I found that the actual file name was 125 characters long which, combined with the path of 136 characters, causes an error.
Temporary Fix
Moving the project folder higher up the chain I was able to finally compile the project.
Helpful Findings
Primary problem: Files imported from a module are extremely long Combining problem: Because full paths are being used, the deeper the root of the target project is, the primary problem is intensified.
Extra Info
Click To View
As stated in the main problems, I think somehow using relative paths instead of full paths will heavily add room to filenames. But the most applicable solution would be to heavily shorten files imported via modules. Being over 100 characters long for the name alone is almost unusable in the compiler. Environment: - Windows 10 - MSVC 2017 - x64 build - Debug & Release **Error message:** [c1xx: fatal error C1081 **file name too long**](https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1081) Generated files: ![image](https://user-images.githubusercontent.com/29788070/36402875-928df290-159e-11e8-96be-49c72535c9c1.png)