Hello David!

On Sat, Dec 17, 2011 at 2:50 PM, David Cleaver <wrai...@morpheus.net> wrote:
> ...
> I see lots of information online regarding when Visual Studio/Visual C++
> versions started being able to use the ll modifier (since version VC++ 
> 2003/7.1,
> apparently), but I don't see the same information detailing when msvcrt.dll 
> was
> able to use the ll modifier.
>
> On my Windows XP x64 SP2 computer, my c:\windows\system32\msvcrt.dll has 
> version
> 7.0.3790.3959.  I'd like to compile a list of msvcrt.dll versions and whether 
> or
> not they support the ll modifier.
>
> Would others on this list try to compile the following test program to see
> whether or not the full 64bit number is printed?  And after that, could you
> report back here to let us know if it worked or not, and what version of
> msvcrt.dll you have, and what version of OS you are running?
>
> #include <stdio.h>
> #include <inttypes.h>
>
> int main(void) {
> uintmax_t x = 1125899906842749LL;
> printf("%llu\n", x);
> return 0;
> }
> ...

Okay.  For what it's worth:

On 64-bit windows 7 I see what your friend sees, i.e., the full number gets
printed.  I am using Ruben's 64-bit experimental std::thread 4.7 build:

   C:\>gcc --version
   gcc (GCC) 4.7.0 20110829 (experimental)

   C:\>gcc -Wall -o printf_ll_test printf_ll_test.c
   printf_ll_test.c: In function 'main':
   printf_ll_test.c:10:1: warning: unknown conversion type character
'l' in format [-Wformat]
   printf_ll_test.c:10:1: warning: too many arguments for format
[-Wformat-extra-args]

   C:\>printf_ll_test
   1125899906842749

The version of my msvcrt.dll is 7.0.7600.16385.

But we probably expected that since my os is newer rather than older.


Happy Hacking!


K. Frank

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to