Objects file list truncated to 8192 char
Posted: Wed Jun 20, 2012 6:28 pm
I am on Windows using CL 4.0.5589.
My project have ~200 files (for ~5000 char in filename (and should be more than 8192 char for full filePathName of objects) )
in generated makefile
but $(ObjectsFileList) is truncated to 8191 char ( 8k seems to be a limit for CMD.EXE command processor).
so when invoking the link
error occurs because $(ObjectsFileList) has been truncated
I'm currently able to compile by changing intermediate directory for a shorter name (to be (just) under this limit).
Do you know a way to really fix this problem ?
I think that put one obj filename by line should fix the problem.
My project have ~200 files (for ~5000 char in filename (and should be more than 8192 char for full filePathName of objects) )
in generated makefile
Code: Select all
@echo $(Objects) > $(ObjectsFileList)
so when invoking the link
Code: Select all
g++ [..] @"c:\path\to\project.txt" [..]
I'm currently able to compile by changing intermediate directory for a shorter name (to be (just) under this limit).
Do you know a way to really fix this problem ?
I think that put one obj filename by line should fix the problem.