cancel
Showing results for 
Search instead for 
Did you mean: 

dirent.h and unistd.h not found

BAl K.1
Associate III

I used stm32f469i-disco and lvgl to work with the lcd. but when i am using lvgl 8.30, error appear and says "dirent.h" and "unistd.h" not found. where i can found the library? pls help

1 ACCEPTED SOLUTION

Accepted Solutions

with another method that dont use unistd.h and dirent.h

View solution in original post

4 REPLIES 4
Peter BENSCH
ST Employee

You have given very little information, but I'll try to break it down: if you get an error message from your compiler that "dirent.h" and "unistd.h" cannot be found, you are using a compiler where these header files are not included by default. The STM32CubeIDE, on the other hand, is based on GCC and already contains these files.

So you could either use STM32CubeIDE as GUI/compiler, or contact the manufacturer of your current compiler with the question.

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Yes sir, thank you for the answer, i made it

Great!

The users of the community would be very happy to know how you solved the problem, so that they can solve theirs as well?

If the problem is solved, please mark this thread as answered by selecting Select as best, as also explained here. This will help other users find that answer faster.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

with another method that dont use unistd.h and dirent.h