[LLVMdev] Unresolveable fallthrough functions

Anton Korobeynikov asl at math.spbu.ru
Mon Sep 1 08:14:33 PDT 2008


Hello,

> ready> ERROR: Program used external function 'putchard' which could not be
> resolved!
> Any idea of what could be wrong?
Please make sure you're using C linkage for such functions, due to mangling the name of 
function being emitted is not "putchard". Something like this:

extern "C" void putchard(char c) {
 ...
}

Or, just provide a mapping by hands (if you're on platform without dynamic linking, e.g. on 
windows)

--
WBR, Anton Korobeynikov 



More information about the llvm-dev mailing list