Results 1 to 4 of 4
Discuss [ERROR] compiling my app with sdk, getting error at the iPhone Developer Exchange - Hackint0sh.org; hello, what is wrong with this line of code? printf ("Please Enter Your Password\n") the ...
  1. #1
    Developer Array mitchellmoxo's Avatar

    Join Date
    Jan 2008
    Location
    Uni ted king dom..
    Posts
    636
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    39

    Default [ERROR] compiling my app with sdk, getting error

    hello,

    what is wrong with this line of code?

    printf ("Please Enter Your Password\n")

    the compiler error is syntax error before printf?

    help! ahhh

    edit: sorry formy dumbness lmao
    iPhone 3G - Black [2.2]

    MacBook Black - Windows Vista & leopard [4GB Ram]



  2. #2
    Newbie Array

    Join Date
    Apr 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Try putting a '@' in front of your string, for example:

    NSLog(@"Something to log.\n");

  3. #3
    Developer Array mitchellmoxo's Avatar

    Join Date
    Jan 2008
    Location
    Uni ted king dom..
    Posts
    636
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    39

    Default

    ok i got it down to no errors but 1 warning, and also im putting the code in main.m, but i dont think this is the right place, someone correct me if they can please
    iPhone 3G - Black [2.2]

    MacBook Black - Windows Vista & leopard [4GB Ram]

  4. #4
    Rookie Array

    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    it's simple.
    if you use the printf, the syntiax must be :
    printf ("Please Enter Your Password\n");
    if you want to use NSLog this one:
    NSLog( @"Please Enter Your Password");

    bye

 

 

Similar Threads

  1. Replies: 6
    Last Post: 12-15-2009, 06:53 PM
  2. Replies: 3
    Last Post: 10-01-2009, 10:28 PM
  3. Replies: 2
    Last Post: 11-08-2008, 10:53 PM
  4. Replies: 1
    Last Post: 07-19-2008, 10:54 PM

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 04:39 PM.
twitter, follow us!