delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/29/13:52:38

Date: Mon, 29 Dec 1997 10:51:50 -0800 (PST)
Message-Id: <199712291851.KAA11498@adit.ap.net>
Mime-Version: 1.0
To: "John McCormick" <piper AT netcore DOT ca>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: compile and link seperate problem

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019