[phplib-dev] How can I make php dlls? From: Kim,Juyang (sowon77 <email protected>)
Date: 10/04/00

Hello.

I wanna make a simple php DLL return string.

This is source.
--------------------------
#include <windows.h>
#include <php.h>

PHP_FUNCTION(php_test){

 RETURN_STRING("test_string",1);
}

function_entry soft_functions[] = {
 PHP_FE(php_test,NULL)
 {NULL, NULL, NULL}
};

zend_module_entry soft_module_entry = {
  "soft",
  soft_functions,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  STANDARD_MODULE_PROPERTIES,
};


ZEND_GET_MODULE(soft)
---------------------------------

but, when I compile this source, compiler can't recognize estrdup().

error message is [[error LNK2001: unresolved external symbol __imp___estrndup]]

I think I miss out some librarys.

Can you tell me the way correct this error?

p.s when I return "RETURN_TRUE", this source work well.
      And I'm sorry that I'm not good at english. :)










 
=====================================================
   Solution Development 1 Kim, JuYang 3 SOFT Ltd.

   PHONE : 02-3772-0303
   FAX : 02-786-1454
   Home Page : http://www.3soft.com
   Email : sowon77 <email protected>
=====================================================