Home > Backend Development > PHP Tutorial > PHP扩展 调用ICE的有关问题请问

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

WBOY
Release: 2016-06-13 11:04:10
Original
1021 people have browsed it

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被版主删除
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template