PHP extension call ice question to ask
Environment:
Ubuntu 12.04
Ice 3.4.2 compiled to install printer demo that runs ice
PHP 5.3.10
Problem:
Write PHP extension Call ice
Config.m4
Using Php_arg_with
Prompt when calling the Ice interface Conversion agent in CPP file:
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 tip:
PHP warning:php startup:unable to load dynamic Library ' ... \test.so ' ... \so:
Undefined symbol: _ztin8iceproxy4demo7printere in Unknown on line 0
------Solution--------------------
The reply was deleted by moderator in 2012-08-22 08:50:56