Help...

Discussion in 'iOS Development' started by hillbilly, Apr 27, 2009.

  1. hillbilly

    hillbilly New Member

    Joined:
    Feb 9, 2009
    Messages:
    25
    Likes Received:
    0
  2. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    That is for 1.x.
  3. hillbilly

    hillbilly New Member

    Joined:
    Feb 9, 2009
    Messages:
    25
    Likes Received:
    0
  4. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    If you don't understand saurik's guide then you shouldn't be installing the toolchain. If you insist of installing the toolchain, then just copy/paste what his guide has into a Cygwin environment.
  5. Pelaez-1

    Pelaez-1 New Member

    Joined:
    May 5, 2008
    Messages:
    822
    Likes Received:
    0
    Device:
    iPhone
    Or install the toolchain in your iPhone.

    In Cydia, look for iPhone Toolchain 2.0 or something like that
  6. hillbilly

    hillbilly New Member

    Joined:
    Feb 9, 2009
    Messages:
    25
    Likes Received:
    0
    I went ahead and searched deep into the internet and found a binary installer for the toolchain! I installed it and was happy to see my "hello world" app being compiled but then it gave me this error -> "HelloWorld.c:4: warning: incompatible implicit declaration of built-in function"

    Here's my HelloWorld.c file
    Code:
    #include <stdio.h>
    
    int main(void) {
      printf("Hello, world!\n");
      return 0;
    }
    
    Nothing is wrong with it though... It's some of the simplest code I've ever seen.. any help here?
  7. Gamma

    Gamma Active Member

    Joined:
    Apr 2, 2008
    Messages:
    1,964
    Likes Received:
    3
    Device:
    iPod touch
    iPhone programming is in Objective-C.
  8. hillbilly

    hillbilly New Member

    Joined:
    Feb 9, 2009
    Messages:
    25
    Likes Received:
    0
    So how would I go about fixing this? (when I compile a UIkit example it gives me an "#include" error..
  9. Gamma

    Gamma Active Member

    Joined:
    Apr 2, 2008
    Messages:
    1,964
    Likes Received:
    3
    Device:
    iPod touch
    No idea :/

    I'm not an iPhone dev.
  10. hillbilly

    hillbilly New Member

    Joined:
    Feb 9, 2009
    Messages:
    25
    Likes Received:
    0
    I changed the file extension to *.m but still it gives me this full error:

    Code:
    *****@********* /cygdrive/c/cygwin/iphone-apps/console/helloworld
    $ make
    /usr/local/bin/arm-apple-darwin-gcc -c -I/usr/local/lib/gcc/arm-apple-darwin/4.2
    .1/include -isysroot /usr/local/iphone-sysroot  HelloWorld.m -o HelloWorld.o
    HelloWorld.m:1:19: error: no include path in which to search for stdio.h
    HelloWorld.m: In function 'main':
    HelloWorld.m:5: warning: incompatible implicit declaration of built-in function
    'printf'
    make: *** [HelloWorld.o] Error 1

Share This Page