Re: Re: PHP 4.0 Bug #5882 Updated: Use inline directive in *.c files for global functions in Zend engine
| From: | Sascha Schumann | Date: | Tue, 15 Aug 2000 20:56:06 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #5882 Updated: Use inline directive in *.c files for global functions in Zend engine | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-29052@lists.php.net to get a copy of this message | ||
On Tue, 15 Aug 2000, Maxim Batourine wrote:
>
> > Looks like problem in the compiler, because these functions aren't declared static.
> I am sorry, this is my mistake, this function declared as inline, and
> (in ANSI compilers) cann't use as external function,
ANSI C does not define the inline declarator. It appeared in
ISO C99 for the first time.
> No, becouse, in this situation you defined function in headers with
> implemantation, and in many object files at same time will exist same
> function with equal name - this is error for linker - it cann't choose
> function which will exists in library.
That is only true, if you configure with
--enable-c9x-inline. If you want to use -Dinline=, then you
shall not enable that option.
- Sascha