Forum Discussion

DiBosco's avatar
DiBosco
Icon for New Contributor rankNew Contributor
5 years ago

Compiler is happy with stdint.h, but not uint16_t etc

Is anyone able to tell me why (in Quartus 16's NIOS), although I can happily include stdint.h and the compiler doesn't bat an eyelid, it refuses to accept uint16_t, uint32_t etc etc exist?

AFAIK it uses gcc, so it should be happy with it. I use this all the time on ARMs which also use gcc.

Thanks.

3 Replies

  • Hi @DiBosco,

    Thank you for posting in Intel community forum, hope this message find you well and apologies for the delayed in response.
    I believe you are hitting on to a compilation error, if I misunderstand the situation, it would be a great help if you are able to provide a screenshot of the error and the C codes files if convenient.


    As to use the variable type uint16_t, would suggest to try and include the inttypes.h, and I believe that should work.
    Please do try and let us know if problem still persist.

    Warm regards.
    BB

      • BoonBengT_Altera's avatar
        BoonBengT_Altera
        Icon for Moderator rankModerator

        Hi @DiBosco,

        Good to know that it is working now, we would be closing the thread. If you have further queries, Please do post a response in the next 15 days.
        After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.

        Warm Regards
        BB