iPhone toolchain Failing to build Objective-C application???

Discussion in 'iOS Development' started by mohitd2000, Oct 10, 2010.

  1. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    231
    Likes Received:
    0
    Device:
    3G iPod touch
    I recently built the iphone toolchain and I tested it out on a small C application. It work, but I wanted to do some UI stuff. So I copied some code from a HelloWorld application and I get this when I try to run make:
    Code:
    mohit@mohit-laptop:~/Developer/iPhone/HelloWorld$ make
    arm-apple-darwin9-gcc -c  main.m -o main.o
    In file included from /home/mohit/toolchain/dat/sys/usr/include/CoreFoundation/CoreFoundation.h:12,
                     from /home/mohit/toolchain/dat/sys/usr/include/Foundation/Foundation.h:6,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIAccelerometer.h:8,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIKit.h:9,
                     from main.m:1:
    /home/mohit/toolchain/dat/sys/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
    In file included from /home/mohit/toolchain/dat/sys/usr/include/CoreFoundation/CoreFoundation.h:16,
                     from /home/mohit/toolchain/dat/sys/usr/include/Foundation/Foundation.h:6,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIAccelerometer.h:8,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIKit.h:9,
                     from main.m:1:
    /home/mohit/toolchain/dat/sys/usr/include/float.h:8:24: error: float.h: No such file or directory
    In file included from /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/DriverServices.h:32,
                     from /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/CarbonCore.h:125,
                     from /home/mohit/toolchain/dat/sys/usr/include/AE/AE.h:20,
                     from /home/mohit/toolchain/dat/sys/usr/include/CoreServices/CoreServices.h:21,
                     from /home/mohit/toolchain/dat/sys/usr/include/CoreGraphics/CGEvent.h:17,
                     from /home/mohit/toolchain/dat/sys/usr/include/CoreGraphics/CoreGraphics.h:25,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIColor.h:9,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIInterface.h:10,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIView.h:10,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIActivityIndicatorView.h:8,
                     from /home/mohit/toolchain/dat/sys/usr/include/UIKit/UIKit.h:10,
                     from main.m:1:
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:397: error: redefinition of ‘struct MachineInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:402: error: redefinition of ‘struct RegisterInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:424: error: redefinition of ‘struct FPUInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:429: error: redefinition of ‘struct VectorInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:438: error: redefinition of ‘struct ExceptionInformation’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:451: error: redefinition of ‘struct MachineInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:456: error: redefinition of ‘struct RegisterInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:478: error: redefinition of ‘struct FPUInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:483: error: redefinition of ‘struct VectorInformationARM’
    /home/mohit/toolchain/dat/sys/usr/include/CarbonCore/MachineExceptions.h:492: error: redefinition of ‘struct ExceptionInformation’
    main.m: In function ‘main’:
    main.m:7: warning: passing argument 4 of ‘UIApplicationMain’ from distinct Objective-C type
    make: *** [main.o] Error 1
    
  2. evilish2236

    evilish2236 New Member

    Joined:
    Mar 11, 2009
    Messages:
    54
    Likes Received:
    0
    Device:
    4G iPod touch
    Post helloworld code.

Share This Page