ld: entry point (start) undefined

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gobi Sakthivel
    New Member
    • Jan 2013
    • 26

    ld: entry point (start) undefined

    i am new to MAC OSX, actually i installed a gcc compiler (4.2.0) in it and it gets installed in /usr/bin/gcc (default location)
    Using this gcc i can compile and run anything, everything is fine with this.

    Now again i installed new gcc(4.9.0) locally in /root/.../My_gcc and changed the PATH varialble to /root/../My_gcc:$PATH
    and when i give gcc -- version, new gcc 4.9.0 is displayed in terminal, Now using this new gcc when i run any program, i am getting this error.

    devteams-iMac:c admin$ g++ ff.cpp
    ld: entry point (start) undefined. Usually in crt1.o for architecture x86_64
    collect2: error: ld returned 1 exit status
    devteams-iMac:c admin$

    Searched a lot in google, but no positive results. Anyone help me pls.
Working...