Hartley Posted January 23 Share Posted January 23 Hello all, I have a build warning in my code: implicit declaration of 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] The code works but the warning is annoying. I tried including <unistd.h> to pull in the declaration but that results in a build failure: conflicting types for 'sleep' conflicting types for 'usleep' Does anyone know what header can be included in Vitis to correctly get the prototype of 'read'? Thanks Link to comment Share on other sites More sharing options...
0 artvvb Posted Monday at 10:58 PM Share Posted Monday at 10:58 PM Hi @Hartley Assuming your project is a baseline Baremetal project, file I/O isn't necessarily implemented. You might need to bring in additional libraries that allow you to interact with a file system on, for example, an SD card. - I assume it's not baremetal if read works despite the warning. What's your project? Is this Vitis HLS or "plain-old" Vitis? Is this a petalinux project? Thanks, Arthur Link to comment Share on other sites More sharing options...
Question
Hartley
Hello all,
I have a build warning in my code:
implicit declaration of 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
The code works but the warning is annoying.
I tried including <unistd.h> to pull in the declaration but that results in a build failure:
conflicting types for 'sleep' conflicting types for 'usleep'
Does anyone know what header can be included in Vitis to correctly get the prototype of 'read'?
Thanks
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now