diff --git a/src/errors.h b/src/errors.h
index af3533e57290979f6e3913fe7e35d57bf29ed0cd..7909e5a98804b2358cf10c6171131673bfc28b81 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -74,6 +74,7 @@ DECLARE_ERROR(generic, EMPTY ,
   ERR_FUNC("`[]",f_error_index,tFunc(tString,tMixed),0)
   ERR_FUNC("describe",f_error_describe,tFunc(tVoid,tString),0)
   ERR_FUNC("backtrace",f_error_backtrace,tFunc(tVoid,tArr(tMixed)),0)
+  ERR_FUNC("_sprintf",f_error__sprintf,tFunc(tNone,tString),0)
 )
 
 #define GENERIC_ERROR_THIS ((struct generic_error_struct *)CURRENT_STORAGE)
@@ -109,6 +110,8 @@ DECLARE_ERROR(permission,
 
 DECLARE_ERROR(cpp, ERR_INHERIT(generic), EMPTY)
 
+DECLARE_ERROR(compilation, ERR_INHERIT(generic), EMPTY)
+
 #undef DECLARE_ERROR
 #undef ERR_INHERIT
 #undef ERR_VAR