Do you have strict and warnings enabled in all the files? You're probably overriding sub_in_abc() somewhere, and those pragma's should help you catch that sort of thing.
By the way, how do you know that sub_in_abc() "works fine when compiled individually"?