: I got this error 'couldn't load shell: Argument list too long (bu22).'
: when compliling. There are tons of .o files I need to link them together
: and the argument list for CC becomes very long so that it is beyond of
: the ability of shell parsering.
: Hope somebody would give me some suggestions to handle it.
You could put the .o files in different archives called part1.a, part2.a
(or maybe you can think of a more sensible ordering) using ar, then run
ranlib on it (not needed for certain SystemV derivatives), and finally
link with the archives instead of the .o files. So have a look at the
man pages of ar and ranlib. If ranlib doesn't exist on your system, it
is probably not necessary.
Eindhoven Univ. of Technology
Lab. for Catalysis and Inorg. Chem.