Specifying command line arguments in a file?

Matt Hiller hiller@redhat.com
Fri Apr 27 11:10:00 GMT 2001


On Fri, 27 Apr 2001, Robert Schweikert wrote:

> handle this special case. It would be much better if gcc would accept a
> command file.
> 
> Robert

	I take it something like

% g++ `file` foo.C bar.C -o foobar

where file contains, e.g.,

-u ucorr_ -u uel_

wouldn't be a satisfactory solution either? (Or whatever the equivalent in
your shell is if you're not running a shell that handles this as tcsh or
bash will.)

	The behavior that you're getting out of ld is peculiar, though, as
-u on the command line and EXTERN in the linker script are supposed to be
equivalent. Try running gcc or g++ with -v to be certain that the -u
arguments are being passed on to the linker; assuming they are (and they
should be), you may want to follow up with questions about it to
binutils@sources.redhat.com.

Matt



More information about the Gcc-help mailing list