Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

can't able to use usleep function in ARM DS-5

Hi,

I am working with ARM DS-5 builder.I want to use Usleep function but it always display error like:

"undefined reference to `usleep'"

- I have already included unistd.h and when I click on usleep then it opens unistd.h.

- I have also added path at program properties>C/C++ general>Paths and Symbols>Add.

but still when I build project it gives error of undefined reference.

Also I want ot measure time taken by particular C function but whrn I try to include windows.h then it display error.

I am working with windows7 64bit system on Cyclone V soc development kit.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    tried with following options:

    # include "sys/unistd.h"

    # include "unistd.h"

    # include <sys/unistd.h>

    # include <unistd.h>

    still not working..
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    tried with following options:

    # include "sys/unistd.h"# include "unistd.h"# include <sys/unistd.h># include <unistd.h>

    still not working..

    --- Quote End ---

    Hello

    Have you found a solution to this ? We are experiencing the same issue

    Regards

    Mathieu