PHP扩展 调用ICE的问题请教
环境:
Ubuntu 12.04
Ice 3.4.2 编译安装 可以运行ICE的printer demo
php 5.3.10
问题:
编写php扩展调用ice
config.m4
使用PHP_ARG_WITH
在cpp文件中调用ice接口转换代理的时候提示:
int status = 0;
Ice::CommunicatorPtr ic;
try
{
ic = Ice::initialize(argc, argv);
Ice::ObjectPrx base = ic->stringToProxy("SimplePrinter:default -p 10000");
PrinterPrx printer = PrinterPrx::checkedCast(base);
/*if(!printer)
{
throw "Invalid proxy";
}
printer->printString("Hello World!");*/
}
PrinterPrx printer = PrinterPrx::checkedCast(base);
make test 提示:
PHP Warning: PHP Startup: Unable to load dynamic library '...\test.so' ...\so:
undefined symbol: _ZTIN8IceProxy4Demo7PrinterE in Unknown on line 0
------解决方案--------------------
该回复于2012-08-22 08:50:56被版主删除