views:

3422

answers:

4

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
its a NSDictionary
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
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
A: 

brice is right will work if you declare the function before defining it

helloworld