John
John

Reputation: 565

Windows - "The command line is too long" when building .obj files

I am quite a novice user with the compiler based projects.

Before posting this question, I got across few similar questions in SO community as below

SO: 1

SO: 2

I am trying to build the obj files from the build.cmd in command prompt as

build.cmd Target_Machine

It is building the .c and .h files but, when building the .obj files it is giving me the below error

"Command line is too long".

Scons: Building terminated because of errors

How to overcome this issue?

Upvotes: 2

Views: 1537

Answers (1)

Mats Wichmann
Mats Wichmann

Reputation: 909

There's support for breaking up command lines using TempFileMunge. There's some material on it in the wiki:

https://github.com/SCons/scons/wiki/LongCmdLinesOnWin32

there doesn't seem to be much in the "official documentation", which is a little surprising since I thought this kicked in automatically on Windows. Do look at MAXLINELENGTH in the manpage.

Upvotes: 2

Related Questions