better error when trying to use a static C function.