
27 Oct
2010
27 Oct
'10
1:08 p.m.
On Mon, Oct 25, 2010 at 4:48 PM, Ioannis Papadopoulos
Maybe you want a linker "weak reference"? I don't know how portable the concept is, but it's been around for a while. The idea is that your calling module tries to reference an extern. But because that extern is marked (somehow) as a weak reference, absence of that symbol at link time, instead of failing the build, produces an executable in which the referenced symbol has value 0 instead of pointing to a function.