Hello,
 
I am trying to build php_bcompiler.dll on Windows 7 using Visual Studio 10. I 
can compile it OK, but it will not link. Below is the output of the build 
process. Does anybody have any idea on how to get past these link errors so 
that I can build the dll?
 
  php_bcompiler.c
C:\Users\Peter\Documents\Data\Development\Ponderosa Innovative 
Solutions\Code\php-5.3.8\main\../main/config.w32.h(189): warning C4005: 
'PHP_COMPILER_ID' : macro redefinition
          command-line arguments :  see previous definition of 'PHP_COMPILER_ID'
php_bcompiler.c(702): warning C4996: 'sscanf': This function or variable may be 
unsafe. Consider using sscanf_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\stdio.h(325) : see declaration of 'sscanf'
  bcompiler.c
C:\Users\Peter\Documents\Data\Development\Ponderosa Innovative 
Solutions\Code\php-5.3.8\main\../main/config.w32.h(189): warning C4005: 
'PHP_COMPILER_ID' : macro redefinition
          command-line arguments :  see previous definition of 'PHP_COMPILER_ID'
bcompiler.c(60): warning C4996: 'strcat': This function or variable may be 
unsafe. Consider using strcat_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
bcompiler.c(61): warning C4996: 'strcat': This function or variable may be 
unsafe. Consider using strcat_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
bcompiler.c(76): warning C4996: 'strnicmp': The POSIX name for this item is 
deprecated. Instead, use the ISO C++ conformant name: _strnicmp. See online 
help for details.
          c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\string.h(248) : see declaration of 'strnicmp'
bcompiler.c(637): warning C4996: 'sscanf': This function or variable may be 
unsafe. Consider using sscanf_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\stdio.h(325) : see declaration of 'sscanf'
  bcompiler_zend.c
C:\Users\Peter\Documents\Data\Development\Ponderosa Innovative 
Solutions\Code\php-5.3.8\main\../main/config.w32.h(189): warning C4005: 
'PHP_COMPILER_ID' : macro redefinition
          command-line arguments :  see previous definition of 'PHP_COMPILER_ID'
bcompiler_zend.c(738): warning C4018: '<' : signed/unsigned mismatch
bcompiler_zend.c(759): warning C4018: '<' : signed/unsigned mismatch
bcompiler_zend.c(959): warning C4018: '<' : signed/unsigned mismatch
bcompiler_zend.c(1216): warning C4018: '<' : signed/unsigned mismatch
bcompiler_zend.c(1549): warning C4018: '<' : signed/unsigned mismatch
bcompiler_zend.c(1698): warning C4018: '<' : signed/unsigned mismatch
  bcompiler_debug.c
C:\Users\Peter\Documents\Data\Development\Ponderosa Innovative 
Solutions\Code\php-5.3.8\main\../main/config.w32.h(189): warning C4005: 
'PHP_COMPILER_ID' : macro redefinition
          command-line arguments :  see previous definition of 'PHP_COMPILER_ID'
  Generating Code...
     Creating library Release\php_bcompiler.lib and object 
Release\php_bcompiler.exp
php_bcompiler.obj : error LNK2001: unresolved external symbol 
__imp__executor_globals_id
bcompiler.obj : error LNK2001: unresolved external symbol 
__imp__executor_globals_id
bcompiler_zend.obj : error LNK2019: unresolved external symbol 
__imp__executor_globals_id referenced in function _apc_deserialize_zvalue_value
php_bcompiler.obj : error LNK2019: unresolved external symbol 
__imp__ts_allocate_id referenced in function _zm_startup_bcompiler
php_bcompiler.obj : error LNK2001: unresolved external symbol 
__imp__compiler_globals_id
bcompiler.obj : error LNK2001: unresolved external symbol 
__imp__compiler_globals_id
Release\php_bcompiler.dll : fatal error LNK1120: 3 unresolved externals

Reply via email to