Re: Re: Linking problem with extension written in C++
| From: | Jay Smith | Date: | Mon, 14 Apr 2003 16:54:22 +0000 |
| Subject: | Re: Re: Linking problem with extension written in C++ | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-910@lists.php.net to get a copy of this message | ||
I believe Zeev suggested doing it on a per API function basis. Should be in
the archives some place, so I can't take credit for the suggestion. I don't
really care how it's done either, so long as it works. Looking over the
Zend code, it seems that most of the ZEND_API are wrapped in
BEGIN/END_EXTERN_C(), so for the sake of consistency that's probably the
way to go.
J
Per Lundberg wrote:
> On Mon, 2003-04-14 at 18:26, Jay Smith wrote:
>> It kind of seems messy to wrap everything in extern "C".
>
> Well, I think it's kind of standard procedure when writing C APIs. Do a
> grep on __cplusplus in your /usr/include for example. But do it any way
> you like, as long as it works...
> --
> Best regards,
>
> Per Lundberg / Capio ApS
> Phone: +46-18-4186040
> Fax: +46-18-4186049
> Web: http://www.nobolt.com