I am trying to solve a problem that has to do with the order of the
command line arguments passed to the linker.
It seems I have to override the method prepareArguments(...) that is
defined by the CommandLineLinker class, so I looked at some of the other
compiler/linker adapters that override this particular method. When
reviewing the class BorlandLinker, I came across something that is
possibly a bug:
BorlandLinker used to override the method prepareArguments(...) that is
defined in its superclass CommandLineLinker. However, in version 1.27 of
CommandLineLinker.java the signature of the method was changed to
include a CCTask object as first argument. After that change was made,
BorlandLinker no longer overrides the method but instead defines a new
method (without CCTask as first argument), which is of course never
called. AbstractLdLinker, the other class that overrides
prepareArguments(...), was properly modified to use the new signature,
which leads me to think that the same change would probably also be
necessary for the BorlandLinker class.
I don't know... I just noticed that, but I'm not yet too familiar with
all the cpptasks classes; neither am I using the Borland compiler, so
maybe it doesn't even matter. I just wanted to draw your attention to
this potential problem.
San Diego, CA