Page 1 of 1

Objects file list truncated to 8192 char

Posted: Wed Jun 20, 2012 6:28 pm
by Jarod42
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

Code: Select all

@echo $(Objects) > $(ObjectsFileList)
but $(ObjectsFileList) is truncated to 8191 char :( ( 8k seems to be a limit for CMD.EXE command processor).

so when invoking the link

Code: Select all

g++ [..] @"c:\path\to\project.txt" [..]
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.

Re: Objects file list truncated to 8192 char

Posted: Wed Jun 20, 2012 7:39 pm
by eranif
Did you try to disable the file option from:
Settings -> Build Settings -> Compiler Name -> Advanced -> Pass object list to the linker via file

Otherwise, I can only suggest to reconsider your project layout (codelite itself has over 1300 files and I compile it without a problem)
Eran

Re: Objects file list truncated to 8192 char

Posted: Wed Jun 20, 2012 8:13 pm
by Jarod42
With option disabled, it works, thanks.

And it is hard to change project layout since CodeLite is not the only/main used IDE of the project
(and also internal dependencies are currently interleaved :-/)