Re: [Mingw-w64-public] #include causes formatting problems with PRId64

2012-08-08 Thread Ruben Van Boxem
2012/8/8 Earnie Boyd > On Wed, Aug 8, 2012 at 3:49 PM, Ruben Van Boxem wrote: > > > > Further reduction to (removed unistd.h): > > #define __STDC_FORMAT_MACROS > > #include > > #include > > #include > > #include > > #include > > int main(int argc,char **argv) > > { > >uint64_t val=123456

Re: [Mingw-w64-public] #include causes formatting problems with PRId64

2012-08-08 Thread Earnie Boyd
On Wed, Aug 8, 2012 at 3:49 PM, Ruben Van Boxem wrote: > > Further reduction to (removed unistd.h): > #define __STDC_FORMAT_MACROS > #include > #include > #include > #include > #include > int main(int argc,char **argv) > { >uint64_t val=1234567890; >printf("%"PRId64"\n",val); >exit

Re: [Mingw-w64-public] #include causes formatting problems with PRId64

2012-08-08 Thread Ruben Van Boxem
2012/8/8 Kai Tietz > This issue is caused by default of POSIX-printf/scanf for g++. The > reason is that g++ applies to printf/scanf functions two times > formatting rules. One time automagical as system-default, and > secondly as specified by headers. So those warnings are occuring. > This

Re: [Mingw-w64-public] #include causes formatting problems with PRId64

2012-08-08 Thread Kai Tietz
This issue is caused by default of POSIX-printf/scanf for g++. The reason is that g++ applies to printf/scanf functions two times formatting rules. One time automagical as system-default, and secondly as specified by headers. So those warnings are occuring. This might be worth a bug report on g

Re: [Mingw-w64-public] #include causes formatting problems with PRId64

2012-08-08 Thread Ruben Van Boxem
2012/7/11 Simson Garfinkel > When I #include with mingw64-g++ the PRId64 value is no longer > interpreted correctly. > > Here is the test program: > > #define __STDC_FORMAT_MACROS > #include > #include > #include > #include > #include > #include > int main(int argc,char **argv) > { >ui

[Mingw-w64-public] #include causes formatting problems with PRId64

2012-07-11 Thread Simson Garfinkel
When I #include with mingw64-g++ the PRId64 value is no longer interpreted correctly. Here is the test program: #define __STDC_FORMAT_MACROS #include #include #include #include #include #include int main(int argc,char **argv) { uint64_t val=1234567890; printf("%"PRId64"\n",val);

[Mingw-w64-public] #include causes formatting problems with PRId64

2012-07-10 Thread Simson Garfinkel
When I #include with mingw64-g++ the PRId64 value is no longer interpreted correctly. Here is the test program: #define __STDC_FORMAT_MACROS #include #include #include #include #include #include int main(int argc,char **argv) { uint64_t val=1234567890; printf("%"PRId64"\n",val);