Re: [pcre-dev] [Bug 867] "\w" no longer functions

Página superior
Eliminar este mensaje
Autor: Mart Goodall
Fecha:  
A: Sheri, pcre-dev@exim.org
Cc: Mart Goodall
Asunto: Re: [pcre-dev] [Bug 867] "\w" no longer functions
Ok - Its really my mistake for not including HAVE_CONFIG_H define in the project. Without it, the code would not compile and to resolve that, I had edited pcre_internal.h and added config.h to it (sorry I didn't mention that but I forgot myself). That resolved the compile/build but it does not function identically to adding the HAVE_CONFIG_H. Really, the compile sequence is very sensitive. I noticed for instance that pcre_ucp_searchfuncs.c does not contain #ifdef HAVE_CONFIG_H
#include config.h"
#endif
Prior to the reference to #include "pcre_internal.h"- I assume this is a mistake since it's the only real difference I can see to placing config.h directly in pcre_internal.h and adding #define HAVE_CONFIG_H.

At least at this point I can progress.

Thanks
Mart Goodall


-----Original Message-----
From: Mart Goodall
Sent: Wednesday, July 29, 2009 11:02 AM
To: Sheri; pcre-dev@???
Cc: Mart Goodall
Subject: RE: [pcre-dev] [Bug 867] "\w" no longer functions

Thanks - not a program I am familiar with.
I made the VS solution from scratch to fit in to my environment. I actually make pcre.lib with one project and then the pcretest.exe that links in the library from another project, combined into one VS solution.
The main change to make it work was I have added "HAVE_CONFIG_H" as I didn't realize config.h wasn't included without that. On doing so, I had to comment out of config.h "#define EBCDIC 0" as this is actually defining it, even though the value is 0, which stops the compile with lines in pcre_compile.c like:-

#if defined EBCDIC && defined SUPPORT_UTF8
#error The use of both EBCDIC and SUPPORT_UTF8 is not supported.
#endif

I am still investigating further to try and work out which #define is affecting the result.

Thx
mart



-----Original Message-----
From: Sheri [mailto:silvermoonwoman@comcast.net]
Sent: Wednesday, July 29, 2009 10:28 AM
To: Mart Goodall; pcre-dev@???
Subject: Re: [pcre-dev] [Bug 867] "\w" no longer functions

Mart Goodall wrote:
> Microsoft VS2008 doesnt use cMake. I am actually building directly from projects (*.vcproj) but even the other approach is nMake.
> I have found the Non-Unix-Use document (thanks) and just wading through it to see if there are any extra options required.
> I have just subscribed to pcre dev so hopefully soon I will start seeing the dialog.
> Fyi, I am on Win32 XP.
> Many thanks
> mart
>

cMake creates solution files for Visual Studio.