ld: symbol(s) not found for architecture arm64

I'm trying to compile a little project in C with the following structure:

Project | |->Headers |->library.h | |->src |->main.c |->library.c

I've checked all my files, my configurations files and I'm getting the same error everytime, someone could please help me? :(

Undefined symbols for architecture arm64: "_getfavoritenumber", referenced from: _main in main-99c109.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Are you working in Xcode? Or building this project from the command line?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

OK, cool, then I have a post for you: Investigating Third-Party IDE Integration Problems.

Run through the process described there to verify that your command-line tool setup is working in general. If you then continue to have problems, please post a minimal example that illustrates the problem.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

ld: symbol(s) not found for architecture arm64
 
 
Q