Objects file list truncated to 8192 char

General questions regarding the usage of CodeLite
User avatar
Jarod42
CodeLite Expert
Posts: 239
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Objects file list truncated to 8192 char

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Objects file list truncated to 8192 char

Post 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
Make sure you have read the HOW TO POST thread
User avatar
Jarod42
CodeLite Expert
Posts: 239
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Objects file list truncated to 8192 char

Post 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 :-/)
Post Reply