Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Hi,

We have a makefile that builds our product. Unfortunately the length of the build command has grown too large and we now get "The command line is too long." error.

Any one know how to get around this one?


Thanks.
Posted

or..
Most 'Makes' also allow you to specify your command line arguments in a separate file and pass it as an argument to make.

The same applies to most compilers/linkers and other tools. Instead of specifying all the flags and include paths on the commandline of the said tool, put them in a file.
 
Share this answer
 
v2
I hate to point out the obvious but the error message is telling you what you need to do. Find a way to split your build into smaller sub-projects and build them independently.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900