Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:01:35+00:00 2026-06-04T13:01:35+00:00

I am trying to get rid of a bogus warning in my program. Under

  • 0

I am trying to get rid of a bogus warning in my program. Under windows 64 (under linux there is no such warning) this statement:

printf("%llu",UINT64_MAX);

generates the following warning:

warning: unknown conversion type character 'l' in format [-Wformat]|

The output appears to be correct and the warning should not be there. The most relevant gcc related post I can find is this bug report back from 2008 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37768

If I understand correctly according to that, this warning stems from the fact that under the hood gcc calls MSVC printf which is not C99 compliant and can’t understand the unsigned long long format in printf. From the same page the suggested solution is to use something called gnu_printf. I tried to google that but I did not find a header to include.

So the question is how should this be handled in order to be portable? I just want to get rid of the warning in a correct and non-sloppy way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:01:37+00:00Added an answer on June 4, 2026 at 1:01 pm

    As I’m guessing you probably already know, from http://comments.gmane.org/gmane.comp.gnu.mingw.w64.general/4670 (note: dead link; see the Internet Archive’s copy),

    the issue is that formatter-width specifier %ll isn’t supported for
    all msvcrt-DLL versions, therefore gcc warns about its use. The
    variant for specifying 64-bit integer-scalar-width in formatter for
    msvcrt in a backward-compatible way is by using %I64.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get rid of this: document.body.className = someclass; I want to
I'm trying to get rid of exec in a code similar to this: class
I can't figure this one out. I'm trying to get rid of that blue
The error I'm trying to get rid of is there is an additional letter
I'm trying to get rid of that nasty variable declaration of ref in this
I'm trying to get rid of an annoying warning that CLANG/LLVM 3.0 is giving
I have been trying to get rid of some strange text appearing under my
I'm trying to get rid of the save buttons on my websites. I know
I'm trying to get rid of floats in my functions. I have one function
I'm trying to get rid of curly apostrophes (ones pasted from some sort of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.