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
Post a Comment