Mail Archives: djgpp/1997/12/29/13:52:38
At 04:14 12/29/1997 GMT, John McCormick wrote:
>Hi all,
> I have a problem when I try and link my object files. I have 20 or so
>files in the
>gcc file1.o file2.o .... -o test.exe
>
>It will get to 15th file and truncate the filename and kill the process.
>How can I solve this?
How are you calling GCC? If directly from DOS's command line, or something
equivalent, you run into a 126-character command line limit. You have a few
options:
* Use a response file. Create a file (`filelist', in my example) containing
the names of all your object files, then do this:
gcc @filelist -o test.exe
* Call GCC from within another DJGPP program. `make' may be a good choice
for this.
See also FAQ section 16.4.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -