Prevent linker from unnecessary symbol resolution

From: Srikanth Madani (karnaldrops_at_yahoo.com)
Date: 05/10/04


Date: 10 May 2004 05:36:33 -0700

Hi all,
Suppose I have a C file fun1.c containing two functions:

__________
void func1() {
        printf("\nIn function func1()\n");
}
void func2() {
        func3();
}
___________

and another called hello.c containing:

___________
void main() {
          func1();
}
___________

Is it possible to create a staticly linked binary using just these two
source files? Or do I have to provide a function definition for
func3(), even though it is not called by main (directly or
indirectly)?

Cheers,
Srikanth Madani