i got an error that said "error: conflicting types for '____'. What does that mean?
A:
What datatype is '___'?
My guess is that you're trying to initialize a variable of a type that can't accept the initial value. Like saying int i = "hello";
bkritzer
2009-07-21 18:59:42
its a NSDictionary
2009-07-22 04:16:59
A:
If you're trying to assign it from a call that returns an NSMutableDictionary, that's probably your trouble. Posting the line of code would definitely help diagnose warnings and errors in it.
cdespinosa
2009-07-24 00:00:43
A:
I know this is old, but in case someone needs it: you might need to provide the function definition before you use it. eg:
main(){
myfun(3.4);
}
double myfun(double x){
return x;
}
will give an error. While either
double myfun(double x){
return x;
}
main(){
myfun(3.4);
}
or
double myfun(double x);
main(){
myfun(3.4);
}
double myfun(double x){
return x;
}
Will not. I know you have to do this in straight c. Dunno how applicable it is while deving for the ipod or using NSDictionary objects. a code sample would help.
brice
2010-01-26 19:02:38
A:
brice is right will work if you declare the function before defining it
helloworld
2010-04-16 10:49:17