undefined reference to 'customFunction'
The linker cannot find the implementation of a function that is called in the code.
// In main.c
void customFunction(); // Declaration
int main() {
customFunction(); // Call
return 0;
}
// Missing definition of customFunctionProvide the definition for the function or link to the library that contains it.
// In main.c
void customFunction(); // Declaration
int main() {
customFunction(); // Call
return 0;
}
// Definition
void customFunction() {
printf("Custom function called\n");
}