Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Different GCC's on cygwin?? My works as the original, dieters not ?

Author: Dieter Buerssner

Date: 22:54:40 03/29/05

Go up one level in this thread


On March 29, 2005 at 17:30:39, Daniel Mehrmannn wrote:

>i don't know what migwin gcc version you're using but my version works exactly
>as the original gcc and don't understand MSVC 6 predefined marcos as well as
>__int64

You use the cygwin gcc (which I have too). It comes with a lib very similar to
the libs found on typical modern Unix systems. On the pure language side the
MinGW environment is identical to Cygwin, but it does not have that library, nor
does it need the cygwin dll. It supports the native Windows API calls. So a
chessengine would use GetTickCount() or similar for timing with MinGW and
gettimeofday() with Cygwin. It could use unsigned long long in both
environments. And all Gcc type extensions like inline assembly, typeof, ...

Libraries that were used with Gcc were never really compatible. Especially the
discussed printing of [unsigned] long long was an issue. Not too surprisingly,
because long long was a Gcc extension not supported in the typical libc of the
system. Then there were also times where on one system worked %Lu and on the
other %llu (and on the third neither). MinGW is is protecting this tradition :-)

Without a fast internet connection, MinGW is a much more attractive package,
that can be downloaded in reasonable time.

If I am not mistaken, the newer MSVC beta's (and/or releases even?) support long
long. One can hope, that the lib will also follow and supports %ll type format
specifiers. Since 1999 they are in the ISO C Standard.

Regards,
Dieter



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.