Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 t
Octocat-spinner-32 testunit
Octocat-spinner-32 CalcCplx.idl
Octocat-spinner-32 Cplx.idl
Octocat-spinner-32 README
Octocat-spinner-32 skel_CalcCplx.c
README
  EXAMPLE 2

    Now, a complex calculator with two IDL files. And unfortunetly, some
    generated files need modifications.

    Cplx.idl contains :

        module Cplx {
            struct Complex {
                float   re;
                float   im; 
            };
        };
 
    and CalcCplx.idl contains :

        #include "Cplx.idl"
        interface CalcCplx {
            Cplx::Complex Add(in Cplx::Complex val1, in Cplx::Complex val2);
            Cplx::Complex Sub(in Cplx::Complex val1, in Cplx::Complex val2);
        };

    First, run :

        idl2xs_c Cplx.idl
        idl2xs_c CalcCplx.idl

    Second, you edit and complete MANIFEST with

        Cplx.pm
        Cplx.h

    Third, you edit Makefile.PL

            'PM'            => {
                        'CalcCplx.pm'          => '$(INST_LIBDIR)/CalcCplx.pm',
                        'Cplx.pm'              => '$(INST_LIBDIR)/Cplx.pm',
            },

    Fourth, rebuild Makefile :

        perl Makefile.PL

    Now, you can create skel_CplxCalc.c, build :

        make
        make test
        make install
Something went wrong with that request. Please try again.