Question: I'm trying to compile [PCRE](http://www.pcre.org) (v8.02) for Windows x64, using Vs2008.

The "NON-UNIX-USE" file tells me to use cmake to generate a .sln fle.  

That works. 

When I run the build it succeeds, with 91 warnings. 

All appear to be size conversion warnings. 

Am I doing something wrong?  

Should I expect all these warnings?  

Has anyone else built PCRE for Windows x64, successfully, and without warnings?

Answer: 
I contacted the maintainer of PCRE; apparently the warnings are expected.
He's never built it on Windows, let alone Windows on x64. 

---

**EDIT** - As of 1 June 2010, he's changed the latest version of PCRE, available at `svn://vcs.exim.org/pcre/code/trunk` , to eliminate warnings on Windows/x64. 

Check it out with: 

```
svn co svn://vcs.exim.org/pcre/code/trunk pcre

```
The way Windows 64-bit data model works, compiling 32-bit code as 64-bit often works fine. Even though there is obviously no guarantee in the standard that long and int are the same size, [LLP64](http://en.wikipedia.org/wiki/64-bit#64-bit_data_models) preserves this. In fact, they are the same size as in ILP32. The only thing that's no longer safe is trying to store a pointer in a int.

So the warnings *probably* don't mean there's a real problem.