Autor: Sheri Data: A: pcre-dev Assumpte: Re: [pcre-dev] Building PCRE 7.5 with Visual Studio 7
Alan Lehotsky wrote: > PCRE builds just fine on a huge range of platforms including
>
> - x86-linux
> - hp-ux (both itanium and PA-RISC)
> - sun
> - ibm ppc
> - alpha osf1 (except for the C++ APIs which are confused about 'long
> long')
>
> Unfortunately, I also need a windows build. We are using either cygwin or
> MKS on windows, BUT depending on the Visual Studio
> 2003 (or better) compiler, not the cygwin gcc.
>
> I've managed to cajole the PCRE configure to almost work with the addition
> of appropriate environment variable definitions of
> CC, CXX, LD, AR to point to appropriate VC executables or MKS files.
>
> But the shared libraries won't build because configure doesn't understand
> how to create shared libraries or pic code as far
> as I can tell. And the final link steps for pcretest.exe and pcregrep.exe
> fail because libtool appears to pass the .la files to cl.exe
> in a way that confuses it.
>
> Any chance that a 7.5 windows build or pre-built package is likely to
> surface in the next few weeks?
>
> Thanks,
> Al Lehotsky
>
> See non-unix-use for instructions for configuring using cmake, should
work fine for making shared libraries in your VS environment. It is
necessary to compile the shared libraries in the same VS environment
used to compile the code that will link or open the dll(s) because a
difference in runtime version creates problems. I think this is true of
all VS versions except VS6. If your main app is compiled with VS6, you
can use dlls built with cygwin or msys.