implicit declaration of function ‘config_get_all’
Added by Phill Lavender over 10 years ago
Compiling on x86_64 Ubuntu Precise gives me an implicit-function-declaration error against the git HEAD
src/webui/extjs.c: In function ‘extjs_config’:
src/webui/extjs.c:1571:5: error: implicit declaration of function ‘config_get_all’ [-Werror=implicit-function-declaration]
src/webui/extjs.c:1571:7: error: assignment makes pointer from integer without a cast [-Werror]
src/webui/extjs.c:1595:7: error: implicit declaration of function ‘config_set_muxconfpath’ [-Werror=implicit-function-declaration]
src/webui/extjs.c:1597:7: error: implicit declaration of function ‘config_set_language’ [-Werror=implicit-function-declaration]
src/webui/extjs.c:1599:7: error: implicit declaration of function ‘config_save’ [-Werror=implicit-function-declaration]
Anyone else experience this ?
Config.h is defined in extjs.c and the function is declared correctly from what I can see, so failing to see why this is cropping up.
Phill
Replies (2)
RE: implicit declaration of function ‘config_get_all’ - Added by Prof Yaffle over 10 years ago
I must have compiled a dozen or more times today, but didn't see this.
A quick squint at the code (I can't recompile at the moment) and you're right - the includes are defined. Are all your files present and correct, are they all readable - bluntly, is config.h there?
RE: implicit declaration of function ‘config_get_all’ - Added by Phill Lavender over 10 years ago
Must have been a corrupt git clone. Deleted and started from scratch, compiled no problem. v odd.
Thanks
Phill