How do you know it didn't link? Was there an error where the routine in the second file could not be found? If you add a file that has routines in it that are not called, they will not be compiled and linked (at least that's the way my compiler works).