I am encountering LNK2019 (unresolved external symbol) errors when referencing other procedures within a module. The problem occurs when the other procedure is referenced more than once. For example, the following code sequence will result in a LNK2019 error for subroutine C_Sub:
end subroutine A_Sub
end subroutine C_Sub
end module M_Module
If I remove the second call to C_Sub, or I create a new module with C_Sub (and appropriately reference C_Sub in A_Sub), I don't have any problems.
What do you suggest?