Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: viwrap on January 21, 2026, 09:44:01 pm

Title: CodeBlocks command line size to trigger response file is too big. (patch)
Post by: viwrap on January 21, 2026, 09:44:01 pm
It seems CodeBlocks aims for the upper limit which is 32767, in
which is not entirely true on windows because in some cases it can go down to as low as 8191.

I've experienced this annoying bug while trying to build a big project where CodeBlocks had correctly detected that the initial command was over the 32k limit but the reduced command with the trailing response file would still fail with "Command line is too big" error from the system.

Attached is a simple patch to address this issue.

(I tested compiler.dll with these new values and my project can finally build!)
Title: Re: CodeBlocks command line size to trigger response file is too big. (patch)
Post by: Miguel Gimenez on January 22, 2026, 11:55:40 am
Applied in r13774 (https://sourceforge.net/p/codeblocks/code/13774/), thank you.