Results 1 to 2 of 2

Thread: Not able to resolve "#include <stdint.h>"

  1. #1
    Join Date
    Feb 2017
    Posts
    1
    Rep Power
    1

    Default Not able to resolve "#include <stdint.h>"

    Hi,

    I am using NIOS II EDS 9.1 to generate a sample project from template.

    I am able to build sample project.

    Then i added below include file.

    #include <stdint.h>

    int main ()
    {
    uint32_t test;
    }

    I am getting below error and warnings:

    error : `uint32_t' undeclared (first use in this function)

    warning: stdint.h: No such file or directory

    I have verified that stdint.h is present in system generated includes folder in "C:\altera\91\quartus\bin\cygwin\usr\include "

    How to resolve this problem

  2. #2
    Join Date
    Sep 2016
    Posts
    26
    Rep Power
    1

    Default Re: Not able to resolve "#include <stdint.h>"

    The problem is that some compiler often automatically export names defined in various headers or provided types before such standards were in place.

    Now, I said "may not always work." That's because the cstdint header is part of the C++11 standard and is not always available on current C++ compilers (but often is). The stdint.h header is the C equivalent and is part of C99.

Similar Threads

  1. Replies: 2
    Last Post: April 10th, 2013, 05:00 AM
  2. Replies: 4
    Last Post: September 20th, 2012, 09:58 PM
  3. Error (10028): Can't resolve multiple constant drivers for net "P[6]"
    By Elep in forum Quartus II and EDA Tools Discussion
    Replies: 2
    Last Post: September 14th, 2010, 09:21 PM
  4. In Quartus Programmer, does "Program an EPC16 with POF" include a "Verify"?
    By mandana in forum Quartus II and EDA Tools Discussion
    Replies: 0
    Last Post: April 13th, 2010, 01:32 PM
  5. Error (10028): Can't resolve multiple constant drivers for net "w_ptr_succ[0]"
    By FeGurgel in forum Quartus II and EDA Tools Discussion
    Replies: 3
    Last Post: August 24th, 2009, 07:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •