php module for windows
| From: | Maxim Vysotskiy | Date: | Mon, 14 Jan 2002 00:36:06 +0000 |
| Subject: | php module for windows | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76943@lists.php.net to get a copy of this message | ||
Hello folks.
Trying to make a FedEx ShippingAPI module for php (first for windows
because my dev machine is Win200).
made a module skeleton with ext_skel script and added a project to
php_modules workspace in VC++ 6.0
Trying to build a module and getting the following error:
-------cut---------
Compiling...
fedex.c
Linking...
fedex.obj : error LNK2001: unresolved external symbol __imp__zend_parse_parameters
Debug/fedex.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
fedex.dll - 2 error(s), 0 warning(s)
------cut-----------
Can somebody help me with that?
Thanx in advance.
Following is the module source:
------------------fedex.c--------------------------
/*
+----------------------------------------------------------------------+
| PHP version 4.0 |
+----------------------------------------------------------------------+
| Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_02.txt.
|
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: |
| |
+----------------------------------------------------------------------+
*/
/* include standard header */
#include "php.h"
/* declaration of functions to be exported */
ZEND_FUNCTION(first_module);
/* compiled function list so Zend knows what's in this module */
zend_function_entry firstmod_functions[] =
{
ZEND_FE(first_module, NULL)
{NULL, NULL, NULL}
};
/* compiled module information */
zend_module_entry firstmod_module_entry =
{
STANDARD_MODULE_HEADER,
"First Module",
firstmod_functions,
NULL, NULL, NULL, NULL, NULL,
NO_VERSION_YET,
STANDARD_MODULE_PROPERTIES
};
/* implement standard "stub" routine to introduce ourselves to Zend */
#if COMPILE_DL_FIRST_MODULE
ZEND_GET_MODULE(firstmod)
#endif
/* implement function that is meant to be made available to PHP */
ZEND_FUNCTION(first_module)
{
long parameter;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", ¶meter) == FAILURE)
{
return;
}
RETURN_LONG(parameter);
}
------------------end fedex.c---------------------
--
Best regards,
Maxim mailto:maxy_v@tut.by