Good morning,
I am trying to use Reachabily libraries and when I try to compile I always obtain the same error:
error: invalid conversion from 'BOOL' to 'NetworkStatus'
This is produced in:
BOOL retVal = NotReachable;
if((flags & kSCNetworkReachabilityFlagsReachable) && (flags & kSCNetworkReachabilityFlagsIsDirect))
{
retVal = ReachableViaWiFi;
}
return retVal; // error: invalid conversion from 'BOOL' to 'NetworkStatus'
I just saw this post : How to compile specific files in objective-c++ and the rest of the project in objective-c but it does not work.
I made a new proyect only with this libraries and all works perfect and I think that the problem could be the others linkings flags: -lstdc++ -all_load
Could you help me with this?
Thank you very much.