PHP extension call ice for questions ask

Source: Internet
Author: User
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

  • Related Article

    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: info-contact@alibabacloud.com 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.