S
Srikanth Madani
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
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