Skip to content

Unable to compile #3

@thekeithwaters

Description

@thekeithwaters

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions