Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
1,208 Views

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.
Tags (1)
0 Kudos
3 Replies
Highlighted
Honored Contributor I
73 Views

#include "sys/unistd.h" 

or  

# include <unistd.h> 

 

?
0 Kudos
Highlighted
Honored Contributor I
73 Views

tried with following options: 

 

# include "sys/unistd.h" 

# include "unistd.h" 

# include <sys/unistd.h> 

# include <unistd.h> 

 

still not working..
0 Kudos
Highlighted
Honored Contributor I
73 Views

 

--- 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
0 Kudos