View Full Version : [ERROR] compiling my app with sdk, getting error
mitchellmoxo
04-12-2008, 02:15 AM
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
briantun
04-12-2008, 05:40 PM
Try putting a '@' in front of your string, for example:
NSLog(@"Something to log.\n");
mitchellmoxo
04-13-2008, 04:10 AM
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
pomello
04-22-2008, 08:36 AM
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
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.