
error: implicit declaration of function
Here is three example files, that is needed:
File1 - Header and function in her:
$this->bbcode_second_pass_code('', '_mali_err mali_init_err(_mali_bool mali);')
File2 - source code file, with included header before code:
$this->bbcode_second_pass_code('', '
#include "mali_header.h"
_mali_err mali_init_err(_mali_bool mali)
{
if (mali == MALI_TRUE) return _mali_err_any;
}
')
File3 - any source file, with included header and passed function:
$this->bbcode_second_pass_code('', '#include "mali_header.h"
mali_error = mali_init_err(MALI_TRUE);
')
Compiling of File3 by gcc generate error: implicit declaration of function.
Is here any good people, that clarify me can?
Thanks and many properity.