PHP头条
热点:

PHP扩展调用ICE的有关问题请问


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被版主删除

www.phpzy.comtrue/phprm/32144.htmlTechArticlePHP扩展调用ICE的有关问题请问 PHP扩展 调用ICE的问题请教 环境: Ubuntu12.04 Ice3.4.2编译安装可以运行ICE的printerdemo php5.3.10 问题: 编写php扩展调用ice config.m4 使用PHP_ARG_WITH 在cpp文件中调用ic...

相关文章

PHP之友评论

今天推荐