Thanks for your explanation, and there are a few others,
1. Where to download specific versions of GCC for 64bit Windows,
because the packaged PostgreSQL source is only compatible of 4.5.0 and
2. Is there a compatibility list telling which version of GCC is
compatible with which versions of MinGW64
3. Can you help with this
Thanks a lot
On Tue, Jan 25, 2011 at 10:27 PM, JonY <jon_y@...> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 1/25/2011 22:25, Xiaobo Gu wrote:
>> I am new to GCC and MinGW, these days I am trying to build the 64bit
>> PostgreSQL for Windows platform. People suggest using the popular
>> MinGW toolchain, and because PostgresQL source code is only compatible
>> with only a few versions of GCC, so I must using the only 4.5.0 and
>> 3.4.4 versions, these got me more confused, I think I won't get the
>> work done before I clearly understand GCC MinGW and MSYS. There are my
>> 1. MinGW provides header, lib and dll runtime files to build Windows
>> applications, GCC is just a compiler(just for C), what's the
>> relationship between them? Does GCC must use the header/lib/dll files
>> provided by MinGW.
> GCC the compiler needs to know about the C functions that you use, so it
> uses the headers for those information. The libraries are there for the
> linker to produce executables. There are also dlls such as mingwm10.dll,
> they are not used directly by gcc, but used to support programs built by
>> 2. Do they must be used togather, and with the same version?
> Yes, but versions are not tightly bound, usually, the more recent, the
>> 3. Where can I download the 4.5.0 or 3.4.4 64bit versions of them.
> There is no 3.x for win64, see mingw-w64 project for 64bit target support.
>> 4. I installed TDM's GCC for Win64, but there are same files in the
>> bin and x86_64-w64-mingw32\bin directory, such as ar.exe, as.exe etc,
>> are they same, what's the difference between them if not.
> Use only those in the top level directory, the others are there to
> support GCC, not for the user.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.16 (MingW32)
> -----END PGP SIGNATURE-----