Not able to build my project on xcode 4.2

前端 未结 4 1647
南方客
南方客 2021-01-21 09:14

I have upgraded my xcode to 4.2 (using snow leopard).Previously i was using Xcode 3.2.6 and my project build successfully with it. Now I\'m unable to build it, instead Xcode emi

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 09:59

    It looks like linker is looking for a start function as entry point in crt1, but didn't find it. You can try adding a linker flag,

     -e symbol_name
        Specifies the entry point of a main executable.  By default the entry name is "start" which
        is found in crt1.o which contains the glue code need to set up and call main().
    

    from the man page of ld.

提交回复
热议问题