Extension : adding a new file to the project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mickael Faivre-Macon

    #1

    Extension : adding a new file to the project

    Hi,

    I have compiled my first extension following the instructions here:
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    and more specifically using phpize.

    The project contains only one C file. How do I add more file to it ?

    Mickael.
  • Mickael Faivre-Macon

    #2
    Re: Extension : adding a new file to the project

    Hi,

    I found it.

    Just add your sources names in :
    PHP_NEW_EXTENSI ON(webengine, source1.cpp source2.cpp source3.cpp
    [etc....], $ext_shared)


    Thanks to:

    Using C++ With PHP
    version 0.0.3
    12 Jun 2003
    J Smith

    Mickael.

    [color=blue]
    > Hi,
    >
    > I have compiled my first extension following the instructions here:
    > http://www.php.net/manual/en/zend.php
    >
    > and more specifically using phpize.
    >
    > The project contains only one C file. How do I add more file to it ?
    >
    > Mickael.[/color]

    Comment

    Working...