Thank you everyone.
Now, there is still one error:
Build started: Project: postgres, Configuration: Release|Win32
Running flex on src\backend\parser\scan.l
VCBUILD : cygwin warning :
MS-DOS style path detected: src\backend\parser\scan.l
Preferred POSIX equivalent is: src/backend/parser/scan.l
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
flex: fatal internal error, exec failed
Project : error PRJ0002: Error result 3328 returned from
'C:\Windows\system32\cmd.exe'.
postgres - 1 error(s), 0 warning(s)
The command exited with code 1.
2011/8/31 Andrew Dunstan <[email protected]>
>
>
> On 08/30/2011 10:43 AM, Magnus Hagander wrote:
>
>> On Tue, Aug 30, 2011 at 16:30, Tom Lane<[email protected]> wrote:
>>
>>> Andrew Dunstan<[email protected]> writes:
>>>
>>>> On 08/30/2011 07:11 AM, 权宗亮 wrote:
>>>>
>>>>> I try to compile from git repository and get some errors.
>>>>>
>>>>> Windows 7 x86
>>>>> VC Express 2008
>>>>> perl v5.8.9
>>>>> flex 2.5.4a-1
>>>>> bison 2.4.1
>>>>>
>>>> Your version of flex is too old.
>>>>
>>> Hmm ... had the OP been using configure, he'd have been told that by the
>>> build scripts. Should the MSVC build scripts be improved to check the
>>> versions of bison and flex?
>>>
>> We do it for bison already. It probably shouldn't be too hard to do
>> the same for flex.
>>
>>
> Done.
>
> cheers
>
> andrew
>
--
权 宗亮(Quan Zongliang)
[email protected]