Questions about PHP extension calling ICE

Source: Internet
Author: User
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
Ubuntu 12.04
Ice 3.4.2 compile and install the printer demo that can run ICE
Php 5.3.10

Compile php extension call ice

Config. m4

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;
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.

Contact Us

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: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.