Prevent linker from unnecessary symbol resolution
From: Srikanth Madani (karnaldrops_at_yahoo.com)
Date: 05/10/04
- Next message: Birger M?ller-Pedersen: "ECOOP 2004: Call for Participation"
- Previous message: flipflop: "Re: Referencing a global array outside a function"
- Next in thread: Mark McIntyre: "Re: Prevent linker from unnecessary symbol resolution"
- Reply: Mark McIntyre: "Re: Prevent linker from unnecessary symbol resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Birger M?ller-Pedersen: "ECOOP 2004: Call for Participation"
- Previous message: flipflop: "Re: Referencing a global array outside a function"
- Next in thread: Mark McIntyre: "Re: Prevent linker from unnecessary symbol resolution"
- Reply: Mark McIntyre: "Re: Prevent linker from unnecessary symbol resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]