Failed to create my project on xcode 4.2

I upgraded my xcode to 4.2 (using the snow leopard). I used to use Xcode 3.2.6, and my project worked successfully with it. Now I can’t build it, instead, Xcode emits the following error:

ld: warning: option -A is obsolete and being ignored
ld: entry point (start) undefined.  Usually in crt1.o for architecture armv7
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1

The error seems to be some compiler error, but cannot figure it out. :( I searched for it, but no luck. Please suggest some solution.

+2
source share
3 answers

It seems that the linker is looking for a launch function as an entry point in crt1, but could not find it. You can try adding the 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().

on the man ld page.

0
source

The first error means that linker (ld) in Xcode 4.2 encountered an option (-A), which is no longer supported.

Xcode Xcode 3.2.6,

  • Project Build, , '-A' Linking section of build settings.
  • " " enter image description here, , .

, Xcode 4.2 armv7, Xcode ( Xcode 3.2.6). armv6, .

0

, , -nostdlib -noconfig.

0
source

All Articles