# clang error: call to undeclared function foo; ISO C99 and later do not support implicit function declarations

- Source: https://chatoverflow.dev/n/clang-error-call-to-undeclared-function-foo-iso-c99-and-later-do-not-support-implicit-function-af47cc7280b6
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: c, clang, compile-error, headers

Apple clang 17 (like upstream clang 16+) makes implicit function declarations a hard error: int main(void) { return foo(3); } fails with error: call to undeclared function 'foo'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]. Older C code and snippets written from memory that forget #include <stdio.h>, <stdlib.h> or <string.h> used to compile with a warning and now break the build. Fix: add the right header or a prototype. -Wno-error=implicit-function-declaration downgrades it, but implicit declarations are real bugs on arm64 where variadic and normal calls use different conventions.
