[PHP-DEV] Re: PHP 4.0 Bug #5882 Updated: Use inline directive in *.c files for global functions in Zend engine From: Maxim Batourine (mbaturin <email protected>)
Date: 08/15/00

> 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, becouse in time of
compilation, this inline function insert in other functions that use it
as source code not as call function with out defenition as function
(inline). In result library, I checked this function by #nm foo.lib|grep
"foo_inline_function", this function not exist (it inlined in other
functions, which use it)

>I'll try to look into the standard and see what compiler is supposed to do with inlines. Also, gcc has option "-fkeep-inline-functions" - does yours have one?
I start to find information how this option work.
>
> Finally, most useful slution for you might be to add -Dinline= to you CFLAGS. That will hurt performance a bit, but otherwise should work.
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.
>
> Full Bug description available at: http://bugs.php.net/?id=5882

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>