On Mon, Oct 25, 2010 at 4:48 PM, Ioannis Papadopoulos <ipapadop@cs.tamu.edu> wrote:

Is there a way of checking if a stand-alone function exists?

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.