Hi Przemek,

I've found some pages listing %lld as one the significant
incompatibilities of MinGW compared to Linux GCC.

In MinGW the equivalent formatting seems to be:
"%I64d" which is also claimed to be the Microsoft C compatible syntax.

Testing with %I64d shows correct results in 3.4.5 and 4.3.2.

Brgds,
Viktor

On 2008.09.25., at 21:38, Szakáts Viktor wrote:

Same code copied to OSX (Intel), compiled with default gcc 4.0.1
gives the right result:
---
TEST NUMBER = [5000000000]
---

Brgds,
Viktor

On 2008.09.25., at 20:58, Szakáts Viktor wrote:

Hi Przemek,

But for me it's:
hb_xvmPushLongLong( HB_LL( 5000000000 ) );

Can you check in you MinGW the folowing code:
#include <stdio.h>
int main( void )
{
   printf( "TEST NUMER = [%lld]\n", 5000000000LL );
   return 0;
}

Gives me:
TEST NUMBER = [705032704]

In MinGW 3.4.5 (official - tested in two different machines),
4.1.2 (official), 4.3.2 (unofficial).

gcc -v outputs below:
---
Reading specs from C:/devl/MinGW-345/bin/../lib/gcc/mingw32/3.4.5/ specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc -- with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/ mingw --enable-threads --disable-nls --enable-languages=c,c+ +,f77,ada,objc,java --disable-win32-registry --disable-shared -- enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without- x --enable-java-gc=boehm --disable-libgcj-debug --enable- interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)
---
Using built-in specs.
Target: i686-pc-mingw32
Configured with: ../src/configure --prefix=c:/temp/gcc/dest -- enable-languages=c,c++ --disable-shared --enable-threads=win32 -- disable-win32-registry --disable-checking --disable-nls --enable- sjlj-exceptions --disable-libstdcxx-pch
Thread model: win32
gcc version 4.1.2
---
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.3.2/configure --prefix=/mingw -- build=mingw32 --enable-languages=c,ada,c++,fortran,objc,obj-c++ -- with-bugurl=http://www.tdragon.net/recentgcc/bugs.php --disable-nls --disable-win32-registry --enable-libgomp --disable-werror --enable- threads --disable-symvers --enable-cxx-flags='-fno-function- sections -fno-data-sections' --enable-fully-dynamic-string --enable- version-specific-runtime-libs --enable-sjlj-exceptions --with- pkgversion='4.3.2-tdm-1 for MinGW'
Thread model: win32
gcc version 4.3.2 (4.3.2-tdm-1 for MinGW)
---

Brgds,
Viktor



_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to