AnsweredAssumed Answered

command prompt (Cmd. exe) command-line string limitation

Question asked by bookevg on May 2, 2017
Latest reply on Nov 5, 2017 by bookevg

I have a project which build well.

I decided to create the branch project which have the long path relatively the original project.

When I started to build the branch project CCES out the error cc3047: {D} error: ... does not exist

The problem was appeared because command prompt (cmd. exe) has command-line string limitation.

The problem can be solved:

1. using shorter path

2. having IDE's support: if  command-line string was bigger 8k IDE use @file (like cldp.exe)

About @file (from Using the GNU Compiler Collection (GCC): Overall Options ):

Read command-line options from file. The options read are inserted in place of the original @file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed.

Options in file are separated by whitespace. A whitespace character may be included in an option by surrounding the entire option in either single or double quotes. Any character (including a backslash) may be included by prefixing the character to be included with a backslash. The file may itself contain additional @file options; any such options will be processed recursively.

Outcomes