Hmmm. Try compiling both without any interprocedural optimizations ( -ip[o] ) and see if that works. Let me know. - Mike
Hi Mike and Steve - turning the interprocedural optimizations off seemed to solve the problem! I thought I'd tried that, but obviously not.
Many thanks for all of the help,