# building php5 for win32

- Thread: https://externals.io/message/15393
- Original archive: https://news-web.php.net/php.internals/15393
- Started by John Cant on 2005-03-12T08:01:04+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15393 — John Cant — 2005-03-12T08:01:04+00:00

URL: https://externals.io/message/15393#15393

Hello

I have been trying to rebuild the php5 DLLs under VC++ V6 SP5 and find that 
the following four variables are undefined.
I've bodged some values to make the DLLs compile but the values are clearly 
not correct.
Can you tell me what values these should have and where they should be defined?
Everything has been compiled on a clean XP partition.

// JC bodged definitions
unsigned short *_pctype;
int __mb_cur_max;
char* mysql_character_set_name = NULL;
char* mysql_real_escape_string = NULL;

Thanks for your help.

My build command is :
%windir%\system32\cscript /nologo configure.js --enable-snapshot-build 
--without-libxml --enable-isapi --with-mysql > output.txt

Best wishes
John Cant

---

## #15398 — Wez Furlong — 2005-03-12T13:49:34+00:00

URL: https://externals.io/message/15393#15398 · In reply to: #15393

Your libraries/headers/dlls don't match up.

The usual trick to solve this is to recompile the projects using your
own compiler and/or use the "right" versions of things.  Since you
didn't bother pasting the actual error messages (which include the
names of the relevant projects), I can't be more specific than that.

--Wez.



> Hello
> 
> I have been trying to rebuild the php5 DLLs under VC++ V6 SP5 and find that
> the following four variables are undefined.
> I've bodged some values to make the DLLs compile but the values are clearly
> not correct.
> Can you tell me what values these should have and where they should be defined?
> Everything has been compiled on a clean XP partition.
> 
> // JC bodged definitions
> unsigned short *_pctype;
> int __mb_cur_max;
> char* mysql_character_set_name = NULL;
> char* mysql_real_escape_string = NULL;
> 
> Thanks for your help.
> 
> My build command is :
> %windir%\system32\cscript /nologo configure.js --enable-snapshot-build
> --without-libxml --enable-isapi --with-mysql > output.txt
> 
> Best wishes
> John Cant
