iphone - Problem with Reachability: invalid conversion from 'BOOL' to 'NetworkStatus' -


good morning,

i trying use reachabily libraries , when try compile obtain same error:

error: invalid conversion 'bool' 'networkstatus'

this produced in:

bool retval = notreachable; if((flags & kscnetworkreachabilityflagsreachable) && (flags & kscnetworkreachabilityflagsisdirect)) {     retval = reachableviawifi;   } return retval;     // error: invalid conversion 'bool' 'networkstatus' 

i saw post : how compile specific files in objective-c++ , rest of project in objective-c not work.

i made new proyect libraries , works perfect , think problem others linkings flags: -lstdc++ -all_load

could me this?

thank much.

your method should return networkstatus. think variable retval should not of type bool of type networkstatus. in fact, setting reachableviawifi on bool considered bug.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -