Forget the example. 'gcc prog.o bar.a lib.a' does actually work, but achieveing such a _meticulous_ ordering isn't always a simple task in a real program with a big list of files to link, constructed by rules in Makefiles and scripts. Thus the bug stands: the linker is too stupid, the order of files on the command line should not matter to it in being able to find symbols (the issue of multiple symbols is different, of course).
-- Tuomo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]