Click here to Skip to main content
14,039,908 members
Rate this:
Please Sign up or sign in to vote.
See more:

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?

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190425.1 | Last Updated 9 Mar 2010
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100