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
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
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
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
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
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);
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);