Help with Terminal Error: Undefined Symbols for Architecture arm64

0
19
Asked By CuriousCoder99 On

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!

2 Answers

Answered By TechieTom23 On

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!

Answered By HelpfulHannah45 On

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?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.