Help with Terminal Error: Undefined Symbols for Architecture arm64
Asked by
volcanic.ash
I'm having a problem when I try to run my code in the terminal. I keep getting this message: "Undefined symbols for architecture arm64: '_main', referenced from: ld: symbol(s) not found for architecture arm64." Can someone explain what this means and how I can fix it? Also, I've noticed there's some sort of bug appearing on my run button. Edit: The issue has been resolved, but I appreciate everyone's help!
Answers
Hey! I can see this is a common issue. When asking for help, try to provide more details like the exact commands you ran, the full error message you're seeing, and the code you're working on. It really helps others help you better. Also, which programming language and OS are you using?
Reply to this answer
It sounds like you're missing a main function in your code. That's usually why you see that error. Without a main function, the compiler doesn't know where to start executing your program. You might want to check your code to ensure it's there. If you can, share a snippet here for more specific advice!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions