For more information about how to use PHP extension to call ICE, see Ubuntu & nbsp; 12.04Ice & nbsp; 3.4.2 & nbsp; compile and install & nbsp; run the printer & nbsp; demophp & nbsp; of ICE; 5.3.10 problem: compile php extension call ice & nbsp; config. when m4 uses PHP_AR PHP extension to call ICE, ask
Environment:
Ubuntu 12.04
Ice 3.4.2 compile and install the printer demo that can run ICE
Php 5.3.10
Problem:
Compile php extension call ice
Config. m4
Use PHP_ARG_WITH
When you call the ice interface to convert the proxy in the cpp file, the following message is displayed:
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 prompt:
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 the moderator from 08:50:56.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.