Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6540705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:00:42+00:00 2026-05-25T11:00:42+00:00

I am trying to compile a file in Mac OS X but keep on

  • 0

I am trying to compile a file in Mac OS X but keep on getting the error

Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Could any one help to find out what this error means?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:00:43+00:00Added an answer on May 25, 2026 at 11:00 am

    You are missing main definition in the program which is the starting point of any executable. So, linker is complaining because it didn’t find the entry point ( which is main ) for the final executable.

    Undefined symbols:
    "_main",
    

    Meaning there is no _main in any of the source files compiled. ( i.e., int main(void), int main( int agrc, const char* argv[] in C, C++ )

    ld: symbol(s) not found
    

    Meaning it is a linker error. Linker binds all the object files to a single executable. At this time it checks whether there is entry point at all for the executable. It isn’t in your case, so it is complaining.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
I always get this error when trying to compile my file with Boost::GIL PNG
I'm trying to add an header file to dev-C++ but when I compile it
When trying to compile GNU software on HP-UX (binutils for example) I'm getting error
I'm trying to compile my first .ui file using PyQt4 on a mac with
I was trying to compile and project file ,taken freshly from the VSS and
I'm trying to compile an SWC file from a list of given ActionScript classes.
I'm trying to compile a C code in a file from a program in
I'm trying to compile MySQL from source on Mac OS X 10.5. I downloaded
I'm trying to compile svdlibc on a 64 bit mac. Running the make file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.