ID: 13264
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Compile Failure
Operating System: Windows NT 4.0
PHP Version: 4.0.6
New Comment:
Please ask support questions about writing extensions
on the [EMAIL PROTECTED] mailing list.
Previous Comments:
------------------------------------------------------------------------
[2001-09-12 11:00:29] [EMAIL PROTECTED]
Hi,
I have made PHP extenison module and used following :
PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0
I am making mymodule.dll as an extension module.
It compiles well. But while linking gives this error :
error LNK2001: unresolve external symbol _zend_get_parameters_ex
error LNK2001: unresolve external symbol _zend_wrong_parameters_count
...etc...
The Zend API's in zend_API.h are not made extern "C".
NOTE : If I tried to extern "C" like this :
extern "C"
{
#include "zend_API.h"
}
It gives error as it includes headers files which contains templates definations.
I think the Zend functions starting with macro ZEND_API
must be made extern "C" or using BEGIN_EXTERN_C() and END_EXTERN_C() macros already
defined in Zend.The problem is solved by doing so.
Regards,
Atur Shah.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13264&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]