Post

Replies

Boosts

Views

Activity

ld: symbol(s) not found for architecture arm64
Hi,all I'm writing a simple c program on my m1 MacBook with vscode ,but when I complied the project, error occurs: Undefined symbols for architecture arm64: "_isDigitLetter", referenced from: _main in 2330004044t34main-187053.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I installed and used vscode and my program is : //main.c #include <stdio.h> #include "digital.h" int main() { char input; printf("Enter a character: "); scanf("%c", &input); printf("%c", isDigitLetter(input)); return 0; } //isdigit.c #include "digital.h" _Bool isDigitLetter(char c) { return ((c >= '0') && (c<='9')); } //digital.h #ifndef DIGITAL_H #define DIGITAL_H _Bool isDigitLetter(char c); #endif // DIGITAL_H
1
0
396
Jul ’24