Error: too few arguments to function ‘pcap_findalldevs’ iface = pcap_findalldevs();

This should work here as well: