Results 1 to 3 of 3
Discuss GCC on iphone?? at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Hi, I installed GCC from cydia, but I can't even compile the following hello world ...
  1. #1
    Newbie Array

    Join Date
    Oct 2008
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default GCC on iphone??

    Hi, I installed GCC from cydia, but I can't even compile the following hello world file
    "
    #include <stdio.h>
    int main(){
    printf("hello world\n");
    }
    "

    My iphone is 2.1 And it seems that GCC from cydia don't contain necessary headers, anyone got gcc running on iphone?
    Anyone share the headers with me?

    Thanks!



  2. #2
    Newbie Array

    Join Date
    Dec 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by quietbamboo View Post
    Hi, I installed GCC from cydia, but I can't even compile the following hello world file
    "
    #include <stdio.h>
    int main(){
    printf("hello world\n");
    }
    "

    My iphone is 2.1 And it seems that GCC from cydia don't contain necessary headers, anyone got gcc running on iphone?
    Anyone share the headers with me?

    Thanks!

    take this tutorial it shall work...
    [How-To] Install gcc compiler & header files in iPhone - uDơDHD
    and this for the headers:
    Toolchain 2.0 - The iPhone Wiki

    hope that will help
    Last edited by shtofff; 02-05-2009 at 03:20 PM.

  3. #3
    Newbie Array

    Join Date
    Nov 2011
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Lightbulb An alternative for stdio.h!!!

    The header file stdio.h is not available in the list of header files. Instead use stddef.h. It would give you warnings but would compile it. Now run by ./a.out.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 08:57 AM.
twitter, follow us!