You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after removing the ,1. (for "duplicate" in add_assoc_string) , it does compile (but removing 1 might cause issues???)
The example code gives the following error:
terminate called after throwing an instance of 'SimplePcapNs::GenericPcapException'
what(): pcap_next() returned null
hi - please can you give me some guidance on what to do here?
[root@dev SimplePcap-master]# head -2 GNUmakefile
PHPINC += /usr/local/include/php
SWIG += /usr/dev/swig/bin/swig
[root@dev SimplePcap-master]# gmake
mkdir -p ./build
g++ -fPIC -I./include -I./build/build -I/usr/local/include/php/Zend -I/usr/local/include/php/main -I/usr/local/include/php/ext -I/usr/local/include/php/TSRM -I/usr/local/include/php -c -o build/SimplePcap_swig.o build/SimplePcap_swig.cpp
build/SimplePcap_swig.cpp:1866:90: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, iter->first.c_str(), (char )iter->second.c_str(), 1);
^
build/SimplePcap_swig.cpp: In function 'void _wrap_SimplePcap_findAllDevs(zend_execute_data, zval*)':
build/SimplePcap_swig.cpp:1866:7: error: 'add_assoc_string' was not declared in this scope
add_assoc_string(return_value, iter->first.c_str(), (char *)iter->second.c_str(), 1);
^
gmake: *** [build/SimplePcap_swig.o] Error 1
thank you!
The text was updated successfully, but these errors were encountered: